Skip to main content
Module

x/fun/mod.ts>eq.string

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

A Eq that compares strings using strict equality.

Examples

Example 1

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

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

type

Eq<string>