Media Summary: My web page: www.imperial.ac.uk/people/n.sadawi. Examples of variants, which along with records are the primary kind of user-defined More about records vs. variants, and how variants can combine "one of" vs "each of"

Ocaml Data Structures 3 13 - Detailed Analysis & Overview

My web page: www.imperial.ac.uk/people/n.sadawi. Examples of variants, which along with records are the primary kind of user-defined More about records vs. variants, and how variants can combine "one of" vs "each of" Using pattern matching to access the pieces of a variant. Textbook: In this tutorial, I will show the basic ideas of immutable lists (cons lists), as well as polymorphic functions that operate over lists. Examples of pattern matching with lists, records, and tuples. Textbook:

How to define some common operators for function application, including the pipeline operator Textbook: ... Additional static checks performed by the compiler on pattern matches: exhaustiveness and unused branches. Textbook: ... More about using pattern matching with variants. Textbook: How to define a type for binary trees using variants. Textbook:

Photo Gallery

OCAML Data Structures 3/13: OCAML Lists .. More Functions on OCAML Lists
OCAML Data Structures 13/13: OCAML Stack
Variants | OCaml Programming | Chapter 3 Video 13
Algebraic Data Types | OCaml Programming | Chapter 3 Video 17
Pattern Matching with Variants Part 1 | OCaml Programming | Chapter 3 Video 14
OCAML Data Structures 12/13: OCAML Queue
OCaml Tutorial: Getting started with OCaml. Part 3 - Lists and Polymorphic Functions
Pattern Matching | OCaml Programming | Chapter 3 Video 7
Pattern Matching with Lists | OCaml Programming | Chapter 3 Video 8
Static Checking of Pattern Matching | OCaml Programming | Chapter 3 Video 12
Pattern Matching with Variants Part 2 | OCaml Programming | Chapter 3 Video 15
Lists | OCaml Programming | Chapter 3 Video 1
View Detailed Profile
OCAML Data Structures 3/13: OCAML Lists .. More Functions on OCAML Lists

OCAML Data Structures 3/13: OCAML Lists .. More Functions on OCAML Lists

My web page: www.imperial.ac.uk/people/n.sadawi.

OCAML Data Structures 13/13: OCAML Stack

OCAML Data Structures 13/13: OCAML Stack

My web page: www.imperial.ac.uk/people/n.sadawi.

Variants | OCaml Programming | Chapter 3 Video 13

Variants | OCaml Programming | Chapter 3 Video 13

Examples of variants, which along with records are the primary kind of user-defined

Algebraic Data Types | OCaml Programming | Chapter 3 Video 17

Algebraic Data Types | OCaml Programming | Chapter 3 Video 17

More about records vs. variants, and how variants can combine "one of" vs "each of"

Pattern Matching with Variants Part 1 | OCaml Programming | Chapter 3 Video 14

Pattern Matching with Variants Part 1 | OCaml Programming | Chapter 3 Video 14

Using pattern matching to access the pieces of a variant. Textbook: https://cs3110.github.io/textbook.

OCAML Data Structures 12/13: OCAML Queue

OCAML Data Structures 12/13: OCAML Queue

My web page: www.imperial.ac.uk/people/n.sadawi.

OCaml Tutorial: Getting started with OCaml. Part 3 - Lists and Polymorphic Functions

OCaml Tutorial: Getting started with OCaml. Part 3 - Lists and Polymorphic Functions

In this tutorial, I will show the basic ideas of immutable lists (cons lists), as well as polymorphic functions that operate over lists.

Pattern Matching | OCaml Programming | Chapter 3 Video 7

Pattern Matching | OCaml Programming | Chapter 3 Video 7

Examples of pattern matching with lists, records, and tuples. Textbook: https://cs3110.github.io/textbook.

Pattern Matching with Lists | OCaml Programming | Chapter 3 Video 8

Pattern Matching with Lists | OCaml Programming | Chapter 3 Video 8

How to define some common operators for function application, including the pipeline operator Textbook: ...

Static Checking of Pattern Matching | OCaml Programming | Chapter 3 Video 12

Static Checking of Pattern Matching | OCaml Programming | Chapter 3 Video 12

Additional static checks performed by the compiler on pattern matches: exhaustiveness and unused branches. Textbook: ...

Pattern Matching with Variants Part 2 | OCaml Programming | Chapter 3 Video 15

Pattern Matching with Variants Part 2 | OCaml Programming | Chapter 3 Video 15

More about using pattern matching with variants. Textbook: https://cs3110.github.io/textbook.

Lists | OCaml Programming | Chapter 3 Video 1

Lists | OCaml Programming | Chapter 3 Video 1

The basics of

Binary Trees | OCaml Programming | Chapter 3 Video 23

Binary Trees | OCaml Programming | Chapter 3 Video 23

How to define a type for binary trees using variants. Textbook: https://cs3110.github.io/textbook.