(set-global-var sm identifier value)
Set the global variable, namely the first environment with
identifier
to value
.
Set the global variable, namely the first environment with `identifier` to `value`.
(set-local-var sm identifier value)
Set the local variable, namely the last environment with identifier
to value
.
Set the local variable, namely the last environment with `identifier` to `value`.
(set-var sm identifier value)
If a local variable is found with a given identifier
(environment
index > 0) then set the identifier
in the given environment with
the given value
. Otherwise, create a global variable (environment
at index 0) with the given identifier
to the given value
.
If a local variable is found with a given `identifier` (environment index > 0) then set the `identifier` in the given environment with the given `value`. Otherwise, create a global variable (environment at index 0) with the given `identifier` to the given `value`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close