thunk
import { thunk } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/comparable.ts";Create a Comparable for thunk types.
@example
import { struct, thunk, number } from "./comparable.ts";
const { compare } = struct({ asNumber: thunk(number) });
const one = { asNumber: () => 1 };
const two = { asNumber: () => 2 };
const result1 = compare(one)(two); // false
const result2 = compare(one)(one); // true