Sets, Sequences and Mappings

Sets, Sequences and Mappings#

Introduction to Aggregates

Overview of aggregate types, nesting, multi-indexing and common operations.

Introduction to aggregates
Sets

Enumerated sets, set-builder notation, membership, operations and power sets.

Sets
Sequences

Ordered sequences: indexing, slicing, sorting, modification and iteration.

Sequences
Tuples & Cartesian Products

Fixed-length tuples, Cartesian product parents and component access.

Tuples and cartesian products
Lists

Mutable dynamic lists and list operations.

Lists
Associative Arrays

Key-value maps with arbitrary index types.

Associative arrays
Coproducts

Disjoint union types and access to their elements.

Coproducts
Records

Named-field record structures and record formats.

Records
Mappings

Maps between sets: injections, surjections, bijections and coercion maps.

Mappings