Building Compound Types

  1. Each-of types; a value of type t contains values whose types follow each oft1, t2, t3, …, tn (e.g. tuples, records)

  2. One-of types; a value of type t contains values whose types follow one of t1, t2, t3, …, tn (e.g. enumerations, itemizations)

  3. Self-reference (self-referential data types e.g. lists, trees)


Records

<aside> 💽 Records are also called structures (…sound familiar?)

</aside>