Darwin Help

Back to Index

iterate

Function iterate - make available one value for an iterator

Calling Sequence  iterate(v)
Parameters
NameTypeDescription

v anythinga value that will be used by a for-in loop
Return Type  NULL
Synopsis iterate is used inside an iterator function to feed a value to the calling for-in loop. The argument(s) of iterate are evaluated, and the for loop variable is assigned this value, and another iteration is performed. The body of the for loop is executed by the call to iterate.
See also Entries,   Infix,   iterator,   Leaves,   objectorientation,   Postfix,   Prefix,   Primes,   Sequences