OCaml Easy · Lesson 10

Modeling with types

Making illegal states unrepresentable with variants and records.

Lessons · OCaml Easy · Lesson 10 of 10

Modeling with types

Making illegal states unrepresentable with variants and records.

Illustration for OCaml
Making illegal states unrepresentable with variants and records.