import { comparable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { fromCompare } = comparable;
Create a Comparable from a Compare function.
Examples
Example 1
Example 1
import { fromCompare } from "./comparable.ts";
import { pipe } from "./fn.ts";
const { compare } = fromCompare<number>(
(second) => (first) => first === second
);
const result = compare(1)(1); // true