New features since v1.5.1:
- Many improvements to documentation;
- Rename
Iterator.create()
toIterator.over()
; last()
and:last()
method: easily find the last element an iterator produces;:take_last(n)
method: for when you need to get a window before the iterator finished;curry(f, levels)
: curry a function by the given amount of levels;enumerate()
and:enumerate()
: pair an iterator with a counter of how many items have been produced so far (akin to Python's enumerate);lambda {"my_expr", var1=1, var2=2}
syntax is now supported for lambda creation;clambda()
: context aware lambdas! Auto import any non-false, non-nil local or global variable from where the lambda was created (also supports above call syntax);- Lambdas now properly report errors at the correct levels;
- Lambdas now implement
__tostring
; - Word
function
is now allowed in lambdas;