Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

lt

import { lt } from "https://raw.githubusercontent.com/baetheus/fun/main/sortable.ts";

Construct a curried less than function over A from Sortable.

@example
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
function lt<A>({ sort }: Sortable<A>): (snd: A) => (fst: A) => boolean;
§
lt<A>({ sort }: Sortable<A>): (snd: A) => (fst: A) => boolean
[src]

§Type Parameters

§Parameters

§
{ sort }: Sortable<A>
[src]

§Return Type

§
(snd: A) => (fst: A) => boolean
[src]