Skip to main content
Module

x/fun/mod.ts>sortable.Sort

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

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

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