memo-reset!
function
clojure.core.memoize/memo-reset!
(memo-reset! [f base])Takes a core.memo-populated function and a map and replaces the memoization cache
with the supplied map. This is potentially some serious voodoo,
since you can effectively change the semantics of a function on the fly.
(def id (memo identity))
(memo-swap! id '{[13] :omg})
(id 13)
;=> :omg
With great power comes ... yadda yadda yadda.
Examples
No examples yet. Be the first to add one!