You're viewing version 1.2.0 of var-set. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

var-set

clojure.core

  • (var-set x val)
Sets the value in the var object to val. The var must be
thread-locally bound.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3348 top

(defn var-set
  "Sets the value in the var object to val. The var must be
 thread-locally bound."
  {:added "1.0"}
  [^clojure.lang.Var x val] (. x (set val)))
Vars in clojure.core/var-set: defn set val
Used in 2 other vars set-repl-name eval-and-grab-output

Comments top

No comments for var-set. Log in to add a comment.