is there a better/shorter way to do an ocaml one-liner?
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <1996811288.265494.1414159445583.JavaMail.yahoo@jws10041.mail.ne1.yahoo.com> |
I do this currently: echo 'Printf.printf "toto\n"' | ocaml /dev/stdin But it's not very cute neither short I feel.