ocaml
Hits : 2,780
ocaml.org[link1]
some notes on ocaml[link2]
facts:
- ML is a general-purpose functional programming language
- Caml is a dialect of the ML
- OCaml is the most popular variant of the Caml language
- Caml Light's successor is OCaml
- OCaml is also known as: Objective Caml
Documentation and userΆs manual[link3]
- Objective CAML Tutorial[link4]
ONE
ebal@mylaptop ~$ ocaml
OCaml version 4.00.1
# 1+2*3;;
- : int = 7
# 1;;
- : int = 1
# 1.1;;
- : float = 1.1
# 'a';;
- : char = 'a'
# "a";;
- : string = "a"
# abc;;
Error: Unbound value abc
# "abc";;
- : string = "abc"
# true;;
- : bool = true
# false;;
- : bool = false
# (1<2);;
- : bool = true
# (1>2);;
- : bool = false
# ["hello", "world"];;
- : (string * string) list = [("hello", "world")]
# ["hello"; "world"];;
- : string list = ["hello"; "world"]
# "a" :: ["hello"; "world"];;
- : string list = ["a"; "hello"; "world"]
Two
- [link1] http://ocaml.org/
- [link2] http://caml.inria.fr/ocaml/index.en.html
- [link3] http://caml.inria.fr/pub/docs/manual-ocaml-4.00/index.html
- [link4] http://mirror.ocamlcore.org/ocaml-tutorial.org/index.html