import { fn } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { memoize } = fn;
Memoize a unary function using a Map. This means that this algorithm puposefully leaks memory.
TODO: Extend memoize to be variadic.
import { fn } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { memoize } = fn;
Memoize a unary function using a Map. This means that this algorithm puposefully leaks memory.
TODO: Extend memoize to be variadic.