Changes for clojure.core/set

rafmagana on Thu, 21 Jun 2012
;; returns distinct elements
user=> (set '(1 1 2 3 2 4 5 5))
#{1 2 3 4 5}

;; returns distinct elements (different nomenclature)
user=> (set [1 1 2 3 2 4 5 5])
#{1 2 3 4 5}

user=> (set [1 2 3 4 5])  
#{1 2 3 4 5}

user=> (set "abcd")
#{\a \b \c \d}

user=> (set '("a" "b" "c" "d"))
#{"a" "b" "c" "d"}

user=> (set {:one 1 :two 2 :three 3})
#{[:two 2] [:three 3] [:one 1]}
zkim on Sun, 26 Sep 2010
user=> (set [1 2 3 4 5])  
#{1 2 3 4 5}

user=> (set "abcd")
#{\a \b \c \d}

user=> (set '("a" "b" "c" "d"))
#{"a" "b" "c" "d"}

user=> (set {:one 1 :two 2 :three 3})
#{[:two 2] [:three 3] [:one 1]}
seancorfield on Sat, 18 Sep 2010
user=> (set [1 2 3 4 5])  
#{1 2 3 4 5}
user=> (set "abcd")
#{\a \b \c \d}
user=> (set '("a" "b" "c" "d"))
#{"a" "b" "c" "d"}
user> (set {:one 1 :two 2 :three 3})
#{[:two 2] [:three 3] [:one 1]}
MrHus on Sat, 17 Jul 2010
user=> (set [1 2 3 4 5])  
#{1 2 3 4 5}
user=> (set "a" "b" "c" "d")
#{"a" "b" "c" "d"}
user=> (set '("a" "b" "c" "d"))
#{"a" "b" "c" "d"}
user> (set {:one 1 :two 2 :three 3})
#{[:two 2] [:three 3] [:one 1]}