Skip to main content
Module

x/fun/pair.ts>Pair

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
type alias Pair
import { type Pair } from "https://deno.land/x/fun@v2.0.0/pair.ts";

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.

definition: readonly [A, B]