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

gt

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

Construct a curried greater than function over A from Sortable.

@example
import * as O from "./sortable.ts";
import { SortableNumber } from "./number.ts";
import { pipe } from "./fn.ts";

const gt = O.gt(SortableNumber);

const result1 = pipe(1, gt(2)); // false
const result2 = pipe(2, gt(1)); // true
const result3 = pipe(1, gt(1)); // false
function gt<A>({ sort }: Sortable<A>): (snd: A) => (fst: A) => boolean;
§
gt<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]