Changes for clojure.core/doto

ozzloy on Thu, 29 Aug 2013
;; Note that even though println returns nil, doto still returns the HashMap object
user> (doto (java.util.HashMap.)
            (.put "a" 1)
            (.put "b" 2)
            (println))
#<HashMap {b=2, a=1}>
{"b" 2, "a" 1}
dakrone on Wed, 29 Dec 2010
;; Note that even though println returns nil, doto still returns the date object
user> (doto (java.util.HashMap.)
            (.put "a" 1)
            (.put "b" 2)
            (println :printed))
#<HashMap {b=2, a=1}> :printed
#<HashMap {b=2, a=1}>