Liking cljdoc? Tell your friends :D

co.multiply.scoped.impl


carrierclj

The carrier holding the current scope map.

The carrier holding the current scope map.
sourceraw docstring

create-carriercljmacro

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

current-scopecljmacro

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

extend-current-scopeclj

(extend-current-scope bindings)

Merge new bindings into the current scope.

Takes a flat vector of [var1 val1 var2 val2 ...] and returns a new scope map with these bindings added to (or overriding) the current scope.

Merge new bindings into the current scope.

Takes a flat vector of `[var1 val1 var2 val2 ...]` and returns a new scope map
with these bindings added to (or overriding) the current scope.
sourceraw docstring

extend-scopeclj

(extend-scope scope bindings)

Extend a scope map with new bindings.

Takes a scope map and a flat vector of [var1 val1 var2 val2 ...] and returns a new scope map with these bindings added.

Extend a scope map with new bindings.

Takes a scope map and a flat vector of `[var1 val1 var2 val2 ...]` and returns
a new scope map with these bindings added.
sourceraw docstring

get-scoped-varclj

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

resolve-bindingsclj

(resolve-bindings bindings)

Resolve symbols to vars in a bindings vector at compile time.

Transforms [sym1 val1 sym2 val2 ...] into [#'sym1 val1 #'sym2 val2 ...].

Resolve symbols to vars in a bindings vector at compile time.

Transforms `[sym1 val1 sym2 val2 ...]` into `[#'sym1 val1 #'sym2 val2 ...]`.
sourceraw docstring

with-scopecljmacro

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

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close