Skip to main content

Global Bindings

16
  • alter-var-root

    Atomically alters the root binding of var v by applying f to its current value plus any args

  • bound-fn

    Returns a function defined by the given fntail, which will install the same bindings in effect as in the thread at the...

  • bound-fn*

    Returns a function, which will install the same bindings in effect as in the thread at the time bound-fn* was called a...

  • declare

    defs the supplied var names with no bindings, useful for making forward declarations.

  • def

    Creates and interns a global var.

  • defonce

    defs name to have the root value of the expr iff the named var has no root value, else expr is unevaluated

  • get-thread-bindings

    Get a map with the Var/value pairs which is currently in effect for the current thread.

  • get-validator

    Gets the validator-fn for a var/ref/agent/atom.

  • intern

    Finds or creates a var named by the symbol name in the namespace ns (which can be a symbol or a namespace), setting it...

  • pop-thread-bindings

    Pop one set of bindings pushed with push-binding before. It is an error to pop bindings without pushing before.

  • push-thread-bindings

    WARNING: This is a low-level function. Prefer high-level macros like binding where ever possible. Takes a map of Va...

  • set-validator!

    Sets the validator-fn for a var/ref/agent/atom. validator-fn must be nil or a side-effect-free fn of one argument, whi...

  • var-get

    Gets the value in the var object

  • var-set

    Sets the value in the var object to val. The var must be thread-locally bound.

  • with-bindings

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then execu...

  • with-bindings*

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then calls...