Sets the value of atom to newval without regard for the current value. Returns newval.
user=> (def x (atom 10)) #'user/x user=> @x 10 user=> (reset! x 20) 20 user=> @x 20
Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be...
Atomically sets the value of atom to newval if and only if the current value of the atom is identi...
Creates and returns an Atom with an initial value of x and zero or more options (in any order): ...
Sets the value of atom to newval. Returns [old new], the value of the atom before and after the r...
reset!