Changes for clojure.set/map-invert

zkim on Sun, 26 Sep 2010
;; Despite being in clojure.set, this has nothing to do with sets. 

user=> (map-invert {:a 1, :b 2})
{2 :b, 1 :a}

;; If there are duplicate keys, one is chosen:

user=> (map-invert {:a 1, :b 1})
{1 :b}

;; I suspect it'd be unwise to depend on which key survives the clash.
Brian Marick on Mon, 12 Jul 2010
Despite being in clojure.set, this has nothing to do with sets. 


user=> (map-invert {:a 1, :b 2})
{2 :b, 1 :a}


If there are duplicate keys, one is chosen:


user=> (map-invert {:a 1, :b 1})
{1 :b}


I suspect it'd be unwise to depend on which key survives the clash.