Hello,

I have clojure 1.6.0 I get these errors:

-- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8
user=> ;; expecting {:a 1, :b 2}
user=> (into {} '((:a 1) (:b 2)))
java.lang.ClassCastException: clojure.lang.Keyword cannot be cast to
java.util.Map$Entry (NO_SOURCE_FILE:0)

user=> ;; expecting {'(["a" 1] ["b" 2]) '(["c" 3] ["d" 4])}
user=> (into {} '((["a" 1] ["b" 2]) (["c" 3] ["d" 4])))
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast
to java.util.Map$Entry (NO_SOURCE_FILE:0)
-- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8 -- -- >8

Is that a bug or expected behaviour?
The second error message is not even true (vectors can be cast into
map$entry).

Cheers,
Giovanni

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to