$ 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
Dependencies
lua ~> 5.2