Media Summary: My web page: www.imperial.ac.uk/people/n.sadawi Useful links: ... How to raise exceptions, which are really variants. Textbook: The `option` type, which represents optional data. It's a principled way to avoid the plague of `null`. Textbook: ...
Ocaml Tutorial 21 33 More - Detailed Analysis & Overview
My web page: www.imperial.ac.uk/people/n.sadawi Useful links: ... How to raise exceptions, which are really variants. Textbook: The `option` type, which represents optional data. It's a principled way to avoid the plague of `null`. Textbook: ... How to handle exceptions with `try` and pattern matching. Textbook: How to implement the `fold_left` and `fold_right` functionals on lists. Textbook: Defining a small-step substitution-model semantics for a core fragment of
Examples of pattern matching with lists, records, and tuples. Textbook: