Pairs of values.
Pair<A, B> is a type that represents a pair of values A and B. Pair also provides an equivalence relation, a total order, and a semigroup.
Pair<A, B>
A
B
Pair
This module exports Pair as a class. It can be imported as named:
import { Pair } from "@neotype/prelude/pair.js"; Copy
import { Pair } from "@neotype/prelude/pair.js";
Or, the type and the class can be imported and alised separately:
import { type Pair, Pair as P } from "@neotype/prelude/pair.js"; Copy
import { type Pair, Pair as P } from "@neotype/prelude/pair.js";
Generated using TypeDoc
Pairs of values.
Remarks
Pair<A, B>
is a type that represents a pair of valuesA
andB
.Pair
also provides an equivalence relation, a total order, and a semigroup.Importing from this module
This module exports
Pair
as a class. It can be imported as named:Or, the type and the class can be imported and alised separately: