spacepaste

  1.  
  2. let ($) f g = f g
  3. let some x = Some x
  4. let rec loop () =
  5. match
  6. let str = try some $ read_line ()
  7. with End_of_file -> None in
  8. print_endline "So?";
  9. str
  10. with
  11. | Some s ->
  12. print_endline s;
  13. loop ()
  14. | None ->
  15. ()
  16. ;;
  17. loop ()
  18.