Skip to main content

memoize

functionv1.0

clojure.core/memoize

Available in:BBCLJCLJS
(memoize [f])
Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.

No examples yet. Be the first to add one!