Skip to main content

vswap!

macrov1.7

clojure.core/vswap!

Available in:BBCLJCLJS
(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.

No examples yet. Be the first to add one!