Changes for clojure.core/atom

zkim on Sun, 26 Sep 2010
user=> (def my-atom (atom 0))
#'user/my-atom

user=> @my-atom
0

user=> (swap! my-atom inc)
1

user=> @my-atom
1

user=> (swap! my-atom (fn [n] (* (+ n n) 2)))
4
zkim on Tue, 10 Aug 2010
user> (def my-atom (atom 0))
#'user/my-atom

user> @my-atom
0

user> (swap! my-atom inc)
1

user> @my-atom
1

user> (swap! my-atom (fn [n] (* (+ n n) 2)))
4
defn on Tue, 10 Aug 2010
user> (def my-atom 0)
#'user/my-atom

user> @my-atom
0

user> (swap! my-atom inc)
1

user> @my-atom
1

user> (swap! my-atom (fn [n] (* (+ n n) 2)))
4