Range enumIter
Enumerates all iterators in a range using an input function with the possibility to interrupt.
Arguments
The
range
to enumerate.body
is the callable to be called for each iterator. It has the following stack notation:
( iterator -- condition )
An iterator for each entry will be provided as an input
iterator
to the callable. When the output condition
is FALSE, enumeration interrupts.
Return values
None
Complexity
O(rangeSize), for RedBlackTree can be max(O(rangeSize), O(log(treeSize))).
Example
Output:
1,-3,-3,50,