2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/ocaml

24 lines
646 B
Plaintext
Raw Normal View History

2017-06-14 08:43:28 +00:00
# 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
2020-11-07 13:18:54 +00:00
# learn ocaml: /ocaml/:learn
2017-06-14 08:43:28 +00:00
# ocaml one-liners: /ocaml/1line
# search in pages: /ocaml/~keyword