Media Summary: How to define some common operators for function application, including the pipeline operator Textbook: ... In this tutorial, I will show the basic ideas of immutable How to make variants be recursive, and how to parameterize them on other types. Textbook:
Lists Ocaml Programming Chapter 3 - Detailed Analysis & Overview
How to define some common operators for function application, including the pipeline operator Textbook: ... In this tutorial, I will show the basic ideas of immutable How to make variants be recursive, and how to parameterize them on other types. Textbook: More about records vs. variants, and how variants can combine "one of" vs "each of" data. Textbook: ... A comparison of the cons `::` and append `@` operators. Textbook: Using pattern matching to access the pieces of a variant. Textbook:
The formal syntax and semantics of variants. Textbook: Examples of variants, which along with records are the primary kind of user-defined data types in The `option` type, which represents optional data. It's a principled way to avoid the plague of `null`. Textbook: ...