OCaml 2020
August 28, 2020

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.
August 28, 2020
August 31, 2020
January 5, 2021
December 23, 2020
December 14, 2020
December 11, 2020
December 9, 2020
(* 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 |
---|---|---|
mm | 0.7.0 | Jan 4, 2021 |
portaudio_c_bindings | 19.6.0 | Jan 4, 2021 |
mirage-crypto-rng-mirage | 0.8.8 | Jan 4, 2021 |
mirage-crypto-rng-async | 0.8.8 | Jan 4, 2021 |
mirage-crypto-rng | 0.8.8 | Jan 4, 2021 |
mirage-crypto-pk | 0.8.8 | Jan 4, 2021 |