The carrier holding the current scope map.
The carrier holding the current scope map.
(create-carrier)Instantiates a new carrier object.
On JDK 25+, this is a ScopedValue instance. On older JDKs, this is a ThreadLocal.
Instantiates a new carrier object. On JDK 25+, this is a ScopedValue instance. On older JDKs, this is a ThreadLocal.
(current-scope)Returns the current scope map, or an empty map if no scope is active.
Returns the current scope map, or an empty map if no scope is active.
(get-scoped-var v)Retrieve a scoped value, falling back to the var's root binding.
If the var is in the current scope, returns the scoped value. If not in scope, returns the var's current value. If the var is unbound and not in scope, throws IllegalStateException.
This is the runtime implementation for the ask macro.
Retrieve a scoped value, falling back to the var's root binding. If the var is in the current scope, returns the scoped value. If not in scope, returns the var's current value. If the var is unbound and not in scope, throws IllegalStateException. This is the runtime implementation for the `ask` macro.
(with-scope scope & body)Execute body with a pre-built scope map. Returns the value of body.
Execute body with a pre-built scope map. Returns the value of body.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |