Skip to content

v1.6.0

Latest
Compare
Choose a tag to compare
@wqferr wqferr released this 03 Aug 14:05
· 1 commit to master since this release

New features since v1.5.1:

  • Many improvements to documentation;
  • Rename Iterator.create() to Iterator.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;