Skip to main content

lazy-snapshot

function

clojure.core.memoize/lazy-snapshot

(lazy-snapshot [memoized-fn])
Returns a lazy snapshot of a core.memo-placed memoization cache. By lazy snapshot you can infer that what you get is only the cache contents at a moment in time -- and, being lazy, the cache could change while you are realizing the snapshot elements. Returns a sequence of key/value pairs.

No examples yet. Be the first to add one!