Why does `into` fail when the 2-element collections are lists and not
vectors? :
~~~
user=> (into {} [[:a 1] [:b 2]])
{:a 1, :b 2}
user=> (into {} ['(:a 1) '(:b 2)])
ClassCastException clojure.lang.Keyword cannot be cast to
java.util.Map$Entry clojure.lang.ATransientMap.conj (ATransientMap.java:44)
~~~
or even:
~~~
user=> (conj {} [:a 1])
{:a 1}
user=> (conj {} '(:a 1))
ClassCastException clojure.lang.Keyword cannot be cast to
java.util.Map$Entry clojure.lang.APersistentMap.cons
(APersistentMap.java:42)
~~~
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.