UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

4 lines (3 loc) 267 B
import { Mappable } from "./main"; export declare function memoizeWith<A, B, C = string>(toKey: Mappable<A, C>, fn: Mappable<A, B>): Mappable<A, B>; export declare function memoizeWith<A, C = string>(toKey: Mappable<A, C>): <B>(fn: Mappable<A, B>) => Mappable<A, B>;