ClojureDocs

Nav

Namespaces

core.async
core.logic
data.csv
spec.alpha
tools.build
  • clojure
tools.deps

vswap!

clojure.core

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