Iteration at a Glance
The following values can currently be converted into iterators:
Iterator
List
Str
Range
Dict
Vector
Series
DataFrame
Core lazy transformations:
map(callback)
filter(callback)
take(n)
skip(n)
enumerate()
zip(other)
Terminal / reducing operations:
collect()
reduce(callback)
fold(initial, callback)
any(callback)
all(callback)
The usual pattern is:
source
.filter(...)
.map(...)
.take(...)
.collect()
Use the Tutorial’s iterator chapter for detailed examples.