MOOC OCaml (Online Course)
September 26, 2016 - register now!
Find out about OCaml, read about users, see code examples, go through tutorials and more.
Install OCaml, look up package docs, access the Manual, get the cheat sheets and more.
The OCaml Package Manager, gives you access to multiple versions of hundreds of packages.
Read the news feed, join the mailing lists, get support, attend meetings, and find OCaml around the web.
September 26, 2016 - register now!
September 23, 2016
February 21, 2017

February 16, 2017

February 16, 2017

February 16, 2017

(* Binary tree with leaves carrying an integer. *)
type tree = Leaf of int | Node of tree * tree
let rec exists_leaf test tree =
match tree with
| Leaf v -> test v
| Node (left, right) ->
exists_leaf test left
|| exists_leaf test right
let has_even_leaf tree =
exists_leaf (fun n -> n mod 2 = 0) tree
OCaml is a lot more powerful than this simple example shows. See more examples!
| Package | Version | Date |
|---|---|---|
| wamp | 1.1 | Feb 23, 2017 |
| dockerfile | 2.2.1 | Feb 23, 2017 |
| cohttp | 0.21.1 | Feb 23, 2017 |
| zxcvbn | 2.0+1 | Feb 23, 2017 |
| zstd | 0.2 | Feb 23, 2017 |
| zmq | 4.0-7 | Feb 23, 2017 |