lento-lang/Lento-CSharp

Add Lambda Functions

WilliamRagstad opened this issue · 0 comments

Add first class lambda functions. Inline anonymous function declarations with the following syntax:

plusOne(any f) = (int x, int y) -> f(x, y) + 1; # Lambda
add(int a, int b) = a + b
addPlusOne = plusOne(add)
addPlusOne(5, 6) # 12