OCaml by example ⚡️
Code examples for OCaml.
Requirements
Make sure that you have a working opam environment, follow the official installation instructions.
Examples use the dune build system and odoc for documentation generation.
Install the required tools:
$ opam install dune odoc
Contributions
Fork this repository and open a pull request with small code examples to share it with others! Make sure that you document all the installation and execution instructions.
Examples
- hello-world - a small executable that prints a "hello world" message.
- basic-lib-doc - a small executable and a library with documentation.