Learn OCaml
by example.
A practical guide to OCaml covering functional patterns, type system features, and coding exercises. Written for programmers who want to understand the language, not just copy it.
Concepts
6 topics
1.
Currying
Partial application and multi-arg functions
2.
Abstractions
Hiding complexity behind clean interfaces
3.
Pattern Matching
Destructuring values with match expressions
4.
Higher-Order Functions
map, filter, fold and functions as values
5.
Tail Recursion
Writing stack-safe recursive functions
6.
Iteration
Loops, folds, and iterative patterns