Release of OCaml 5.1.0
March 28, 2022
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.
March 28, 2022
September 12, 2023
September 15, 2023
September 14, 2023
September 12, 2023
September 8, 2023
(* 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 |
---|---|---|
safemoney | 0.1.0 | Sep 15, 2023 |
reason-react-ppx | 0.12.0 | Sep 14, 2023 |
reason-react | 0.12.0 | Sep 14, 2023 |
ocaml-system | 5.1.0 | Sep 14, 2023 |
ocaml-src | 5.1.0 | Sep 14, 2023 |
ocaml-base-compiler | 5.1.0 | Sep 14, 2023 |