var-set

added
1.0

ns
clojure.core

type
function

(var-set x val)

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

                (with-local-vars [x nil]
  (println @x)
  (var-set x 1)
  (println @x))
;;=> nil
;;=> 1