Algorithm.eachIter
Enumerates all entries of an enumerable. While enumerating, you can read and write entries using
get
and set
methods of the iterator.
Arguments
The
enumerable
, can be a Container, a Range, or a builtin-list.The
callable
will be called for each iterator. It has the following stack notation:( iterator -- )
An iterator for each entry will be provided as an input
iterator
to the callable.
Return values
None
Complexity
Depends on the enumerable and the callable.
Example
Output:
1,4,9,16,25,36,