ClojureDocs

导航

名称空间

memoize

clojure.core

从 1.0 起可用 (源代码)
  • (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.