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

gte

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

Construct a curried greater than or equal to function over A from Sortable.

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

const gte = O.gte(SortableNumber);

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