Liking cljdoc? Tell your friends :D
Clojure only.

dhall-clj.state


newclj

(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.
sourceraw docstring

with-cache!cljmacro

(with-cache! atom k body)

Given 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
Given 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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close