I have the function below and it works:
(fn x => x * 2) 2;
but this one doesn't work:
(fn x y => x + y ) 2 3;
Can anyone tell me why? Or give me some hint to get it to work?
(fn x => fn y => x+y) 2 3;
works. fn
simply doesn't have the same syntactic sugar to define curried functions that fun
has.