Module pair

Pairs of values.

Remarks

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.

Importing from this module

This module exports Pair as a class. It can be imported as named:

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";

Index

Classes

Generated using TypeDoc