iterate

Defines a function that can be used to iterate over a body.  It is similar to for, but allows you to control when iteration will occur.

It creates a function called name which will perform a single step of the iteration at a time; body can call name whenever it wants to iterate another step.  The form evaluates by calling the new function with the initial values specified.

Exported from

Macro call

iterate (name) ( (argument) = (init-value), ... )
(body)
end iterate

Arguments

nameName of a function to be defined.
argumentAn argument for name.  Optional.
init-valueOptional initial value for argument.
bodyIteration body.  May call the name function with arguments to repeat.
A macro.
The common-dylan module.
Miscellaneous extensions to the Dylan language.