Skip to main content
Module

x/fun/mod.ts>comparable.boolean

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

A Comparable that compares booleans using strict equality.

Examples

Example 1

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

const result1 = boolean.compare(true)(false); // false
const result2 = boolean.compare(true)(true); // true