Skip to main content
Module

x/fun/ord.ts>Ord

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
interface Ord
implements Eq<A>
import { type Ord } from "https://deno.land/x/fun@v2.0.0-alpha.10/ord.ts";

An Ord is an algebra with a notion of equality and order. Specifically, Ord extends Eq and thus inherites an equals method. For order it contains a signed comparison function, taking two values and returning -1, 0, or 1 when first < second, first === second, and first > second respectively.

The original type came from static-land