ClojureDocs

Nav

Namespaces

vswap!

clojure.core

Available since 1.7 (source)
  • (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.