Skip to content

New lambda syntax

Pre-release
Pre-release
Compare
Choose a tag to compare
@maccallum maccallum released this 17 Jul 04:00
· 895 commits to master since this release

The syntax for lambda has changed from

lambda(a, b, c){expr1;, expr2;, exprn;}

to

lambda([a, b, c], expr1, expr2, exprn)

That is to say, the arguments to the lambda must be enclosed in a list and passed as the first arguments, and the expressions are comma separated arguments to the lambda form, not semicolon terminated.