Map, filter, etc as lazy iterator transforms

$ luarocks install iter

iter offers the familiar map(), filter(), etc but with a twist: rather than transforming tables, iter transforms the values in iterators.

iter is very similar to Python's lazy generator transforms. Transformations are lazy and no work is done until the iterator is consumed (usually with a `for` loop).

map
filter
remove
lift
reductions
take
take_while
skip
skip_while
partition
zip
zip_with
dedupe
dedupe_with
reduce
sum
min
max
find
extend
collect
ivalues
values
items
rev_ipairs
rev_ivalues

Versions

0.0.2-17 years ago9 downloads
0.0.1-17 years ago1 download
0.0-09 years ago230 downloads

Dependencies

lua ~> 5.2

Labels

Manifests