(new)
Create a new State
map, to hold all the contexts and caches while we
resolve imports and typecheck.
Create a new `State` map, to hold all the contexts and caches while we resolve imports and typecheck.
(with-cache! atom k body)
Given an atom
that contains a Map, we atomically:
k
is in the mapbody
, and add it to the cacheGiven an `atom` that contains a Map, we atomically: - check if the key `k` is in the map - if it's there we return it - if not, we compute the value with `body`, and add it to the cache
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close