Media Summary: More about records vs. variants, and how variants can combine "one of" vs "each of" data. Textbook: ... The formal syntax and semantics of variants. Textbook: Examples of pattern matching with lists, records, and tuples. Textbook:
Overview

Options Ocaml Programming Chapter 3 Video 20 - Detailed Analysis

More about records vs. variants, and how variants can combine "one of" vs "each of" data. Textbook: ... The formal syntax and semantics of variants. Textbook: Examples of pattern matching with lists, records, and tuples. Textbook: The formal syntax and semantics of lists. Textbook: How to make variants be recursive, and how to parameterize them on other types. Textbook: How to raise exceptions, which are really variants. Textbook:

In this tutorial, I will show the basic ideas of immutable lists (cons lists), as well as polymorphic functions that operate over lists. More about using pattern matching with variants. Textbook: The formal syntax and semantics of pattern matching. Textbook: Using pattern matching to access the pieces of a variant. Textbook: The `function` keyword provides helpful syntactic sugar for pattern matching. Textbook: How to handle exceptions with `try` and pattern matching. Textbook:

An extended example of developing an ADT. Textbook: How to implement a function that counts up with every invocation, using references Textbook: How to define some common operators for function application, including the pipeline operator Textbook: ...

Gallery

Photo Gallery

Related

Related Patients