chickadee » lru-cache » lru-cache-for-each

lru-cache-for-each cache procprocedure

Apply proc (a procedure of two arguments: the entry key and value, respectively) to each entry in cache, ordered from most recently used to least recently used. Does not affect the access ordering.

Note: proc must not mutate cache.