build-memoizer
function
clojure.core.memoize/build-memoizer
(build-memoizer [cache-factory f & args])Builds a function that, given a function, returns a pluggable memoized
version of it. `build-memoizer` takes a cache factory function, and the
arguments to that factory function -- at least one of those arguments
should be the function to be memoized (it's usually the first argument).
`memoizer` above is a simpler version of `build-memoizer` that 'does the
right thing' with a cache and a seed hash map. `build-memoizer` remains
for backward compatibility but should be considered deprecated.
Examples
No examples yet. Be the first to add one!