2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-11 01:10:31 +00:00
cheat.sheets/sheets/ocaml
2018-07-21 22:24:55 +02:00

24 lines
645 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 perl: /ocaml/:learn
# ocaml one-liners: /ocaml/1line
# search in pages: /ocaml/~keyword