Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ─( 16:26:41 )─< command 10 >───────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
  2. utop # let foo b s1 s2 =
  3. if b then
  4. let s1 = (fun s1 -> s1) s1 in
  5. print_endline s1 ;
  6. print_endline s2
  7. ;;
  8. val foo : bool -> string -> string -> unit = <fun>
  9. ─( 16:26:44 )─< command 11 >───────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
  10. utop # foo false "foo" "bar" ;;
  11. - : unit = ()
  12. ─( 16:27:10 )─< command 12 >───────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
  13. utop # foo true "foo" "bar" ;;
  14. foo
  15. bar
  16. - : unit = ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement