On 25 June 2010 12:27, Tim Robinson <tim.blacks...@gmail.com> wrote: > I tried Clojure via Githhub today. > > Anyone notice this bug that hadn't existed in Version 1.1 > > user=> #{:item1 {:a "A" :b "B"} :item2 {:a "A" :b "B"}} > java.lang.IllegalArgumentException: Duplicate key: {:a "A", :b "B"}
You're trying to put duplicate values into a set. Did you mean this instead? user=> (def x {:item1 {:a "A" :b "B"} :item2 {:a "A" :b "B"}}) #'user/x user=> (:item1 x) {:a "A", :b "B"} user=> (:item2 x) {:a "A", :b "B"} user=> -- Michael Wood <esiot...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en