Advertisement
Guest User

Untitled

a guest
Jul 11th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.23 KB | None | 0 0
  1. # let plus x y = x + y;;
  2. val plus : int -> int -> int = <fun>
  3.  
  4.  
  5. # plus 5;;
  6. - : int -> int = <fun>
  7.  
  8.  
  9. # let increment x = plus 1 x;;
  10. val increment : int -> int = <fun>
  11.  
  12. # increment 5;;
  13. - : int = 6
  14.  
  15.  
  16. # increment 2;;
  17. - : int = 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement