Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>comparable.string

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

A Comparable that compares strings using strict equality.

Examples

Example 1

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

const result1 = string.compare("World")("Hello"); // false
const result2 = string.compare("")(""); // true