Skip to main content
Module

x/fun/ord.ts>Compare

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

The Compare function takes to values of the same type and returns an ordering, indicating whether first is less than, equal to, or greater than `second.

definition: (first: A, second: A) => Ordering