Skip to main content
Module

x/fun/mod.ts>sortable.gt

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function sortable.gt
import { sortable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { gt } = sortable;

Construct a curried greater than function over A from Sortable.

Examples

Example 1

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

Parameters

unnamed 0: Sortable<A>

Returns

(snd: A) => (fst: A) => boolean