Public Vars

Back

vswap! (clj)

(source)

macro

(vswap! vol f & args)
Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Returns the value that was swapped in.

Examples