Printing to STDERR and STDOUT in OCaml
In OCaml, the standard library provides straightforward functions for writing to standard output and standard error. Printing to STDOUT Use print_endline to write a string followed by a newline to standard output: print_endline “hello world!” This function is in the Stdlib module (formerly Pervasives in older OCaml versions) and automatically flushes the output buffer. The…
