Changes for clojure.core/swap!

jamieorc on Mon, 30 Apr 2012
user> (def players (atom ()))
#'user/players

user> (swap! players conj :player1)
(:player1)

user> (swap! players conj :player2)
(:player2 :player1)

user> (deref players)
(:player2 :player1)
Kototama on Thu, 07 Oct 2010
user> (def *players* (atom ()))
#'user/*players*

user> (swap! *players* conj :player1)
(:player1)

user> (swap! *players* conj :player2)
(:player2 :player1)

user> (deref *players*)
(:player2 :player1)