Changes for clojure.core/boolean

zkim on Sun, 26 Sep 2010
;; Everything except `false' and `nil' is true in boolean context.
user=> (into {} (map #(vector % (boolean %)) [true false nil [] {} '() #{} ""]))
{true true, false false, nil false, [] true, {} true, #{} true, "" true}

user=> (clojure.pprint/pp)
{true true,
 false false,
 nil false,
 [] true,
 {} true,
 #{} true,
 "" true}
nil
nipra on Tue, 13 Jul 2010
;;; Everything except `false' and `nil' is true in boolean context.
user> (into {} (map #(vector % (boolean %)) [true false nil [] {} '() #{} ""]))
{true true, false false, nil false, [] true, {} true, #{} true, "" true}
user> (clojure.pprint/pp)
{true true,
 false false,
 nil false,
 [] true,
 {} true,
 #{} true,
 "" true}
nil
user>