Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple times, and thus should be free of side effects. Returns the value that was swapped in.
; clojure/core.clj:1303 (defn swap! ([#^clojure.lang.Atom atom f] (.swap atom f)) ([#^clojure.lang.Atom atom f x] (.swap atom f x)) ([#^clojure.lang.Atom atom f x y] (.swap atom f x y)) ([#^clojure.lang.Atom atom f x y & args] (.swap atom f x y args)))
Copyright (c) Rich Hickey. All rights reserved.
The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.