Skip to content

Releases: wqferr/functional

v1.6.0

03 Aug 14:05
Compare
Choose a tag to compare

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;

v1.5.1

06 Oct 16:19
Compare
Choose a tag to compare

Fix some problems with lambda expression validation:

  • A single - won't trip the comment detector
  • Unbalanced parens check was using the wrong string length (oops)

v1.5.0

20 Sep 15:56
Compare
Choose a tag to compare

Now with lambdas!

v1.4.0

10 Sep 02:26
6abbb29
Compare
Choose a tag to compare
Merge pull request #20 from wqferr/more-more-utils

Even more utils!

v1.3.0

09 Sep 21:59
87084d3
Compare
Choose a tag to compare
Merge pull request #10 from wqferr/rename-from-iter-call

Create from to transform vanilla iter into func iter

v1.2.0

06 Sep 02:50
40310cf
Compare
Choose a tag to compare
Merge pull request #11 from wqferr/more-utils

Add more utility operators

v1.1.0

05 Sep 21:32
Compare
Choose a tag to compare

Includes functional.d.tl, for use with the Teal language.

v1.0.0

05 Sep 02:00
2b6de5f
Compare
Choose a tag to compare
Merge pull request #2 from wqferr/51-support

Add support for 5.1 and LuaJIT