The ALTernative Language
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Pair

The pair type is the product of two other types, the key and value type of a pair. Pairs are used to map keys to values, for example to index a struct with a key.

Pair rules

P2:
P2:
P3:
P4:
P5:
P6:

Not trivial pair examples

P7:
P8: