Skip to main content
Module

x/fun/ord.ts>lt

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function lt
import { lt } from "https://deno.land/x/fun@v.2.0.0-alpha.11/ord.ts";

Construct a curried less than function over A from Ord.

Examples

Example 1

import * as O from "./ord.ts";
import { OrdNumber } from "./number.ts";
import { pipe } from "./fn.ts";

const lt = O.lt(OrdNumber);

const result1 = pipe(1, lt(2)); // true
const result2 = pipe(2, lt(1)); // false
const result3 = pipe(1, lt(1)); // false

Returns

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