2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/ocaml
2020-11-18 17:24:28 +01:00

24 lines
646 B
Plaintext

# OCaml
# OCaml, originally named Objective Caml, is the main implementation of
# the programming language Caml. A member of the ML language family.
# Compile into a bytecode executable:
ocamlc hello.ml -o hello
# Compile into an optimized native-code executable:
ocamlopt hello.ml -o hello
# Start ocaml interactive shell
ocaml
# Start the shiny frontend to the ocaml interactive shell, utop
# to install it: opam install utop
utop
# See also:
# OCaml language cheat sheets at /ocaml/
# list of pages: /ocaml/:list
# learn ocaml: /ocaml/:learn
# ocaml one-liners: /ocaml/1line
# search in pages: /ocaml/~keyword