code_junkie

Why should a .net developer learn F#?

Nov 11th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. let inc x = x + 1;;
  2.  
  3. let inc = (fun x -> x + 1);;
  4.  
  5. let add x y = x + y;;
  6.  
  7. let add = (fun x -> (fun y -> x + y));;
  8.  
  9. let inc = add 1;;
Add Comment
Please, Sign In to add comment