import { sortable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { lt } = sortable;
Construct a curried less than function over A from Sortable.
Examples
Example 1
Example 1
import * as O from "./sortable.ts";
import { SortableNumber } from "./number.ts";
import { pipe } from "./fn.ts";
const lt = O.lt(SortableNumber);
const result1 = pipe(1, lt(2)); // true
const result2 = pipe(2, lt(1)); // false
const result3 = pipe(1, lt(1)); // false