Skip to main content
Module

x/fun/comparable.ts>number

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

A Comparable that compares number using strict equality.

Examples

Example 1

import { number } from "./comparable.ts";

const result1 = number.compare(1)(2); // false
const result2 = number.compare(1)(1); // true