Guest User

Untitled

a guest
Feb 22nd, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.18 KB | None | 0 0
  1. let foo1 () =
  2.     print_int 1;
  3.     print_newline();
  4.     1;;
  5.  
  6. let foo2 () =
  7.     print_int 2;
  8.     print_newline();
  9.     1;;
  10.  
  11.  
  12. foo1()+foo2();;
  13.  
  14.  
  15. > 2
  16. > 1
  17. > - : int = 2
Advertisement
Add Comment
Please, Sign In to add comment