anonymous function in SML

Posted by vichet on Stack Overflow See other posts from Stack Overflow or by vichet
Published on 2010-03-13T02:18:33Z Indexed on 2010/03/13 2:27 UTC
Read the original article Hit count: 584

Filed under:
|

I have this below function and it works

(fn x => x * 2) 2; 

but for this below one, it is not working

(fn x y => x + y ) 2 3;

can anyone tell me why? or help give me some hint to get it to work.

© Stack Overflow or respective owner

Related posts about sml

Related posts about smlnj