import { comparable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { literal } = comparable;
Creates a Comparable that compares a union of literals using strict equality.
Examples
Example 1
Example 1
import { literal } from "./comparable.ts";
const { compare } = literal(1, 2, "Three");
const result1 = compare(1)("Three"); // false
const result2 = compare("Three")("Three"); // true
Parameters
..._: A
Returns
Comparable<A[number]>