Release of OCaml 4.13.1
October 1, 2021
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 thousands of packages.
Read the news feed, join the mailing lists, get support, attend meetings, and find OCaml around the web.
October 1, 2021
December 7, 2021
December 9, 2021

December 8, 2021

November 30, 2021

November 23, 2021

(* 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 |
|---|---|---|
| pyml_bindgen | 0.1.2 | Dec 12, 2021 |
| text-tags | 2.4.0 | Dec 12, 2021 |
| regular | 2.4.0 | Dec 12, 2021 |
| ogre | 2.4.0 | Dec 12, 2021 |
| monads | 2.4.0 | Dec 12, 2021 |
| graphlib | 2.4.0 | Dec 12, 2021 |