import { type pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { pair } = pair;
Specifies Pair as a Higher Kinded Type, with covariant parameters A and B corresponding to the 0th and 1st index of any Substitutions.
Properties
readonly
kind: Pair<Out<this, 0>, Out<this, 1>>import { type pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { pair } = pair;
Pair represents a pair of values. This is equivalent to a Tuple of length two, the Separated type in fp-ts, and any other type that contains exactly two covariant other types.
The primary use fo Pair in this library is the target of a partition, where some type A is partitioned, either into [A, A], or [A, B] where B extends A.
Other uses will likely come when Arrows are implemented in fun.
import { pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { pair } = pair;
The canonical Mappable instance for Pair. Contains the map method.
import { pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { pair } = pair;
Creates a Pair from two values first and second with types A and B respectively. Used to quickly construct a Pair.