Tutorial by Examples

This example assumes you've installed OCaml. Compiling OCaml Code Create a new file named hello.ml, with the following contents: print_string "Hello world!\n" ocamlc is the OCaml compiler. To compile and run this script, run $ ocamlc -o hello hello.ml and then execute the resulti...

Page 1 of 1