Skip to main content
Module

x/fun/sortable.ts>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 Sort
import { type Sort } from "https://deno.land/x/fun@v2.0.0/sortable.ts";

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