On Mon, Jun 14, 2010 at 11:06 AM, Sean Devlin wrote:
>
> This behavior becomes a pain when trying to use into:
>
> ;Good
> user=> (into {} [[:a 1] [:b 2] [:c 3] [:d 4]])
> {:a 1, :b 2, :c 3, :d 4}
>
> ;Bad
> user=> (into {} (partition 2 [:a 1 :b 2 :c 3 :d 4]))
> # cannot be cast to java.util.Map$E
On Jun 14, 11:06 am, Sean Devlin wrote:
> ;Bad
> user=> (into {} (partition 2 [:a 1 :b 2 :c 3 :d 4]))
This can, of course, be
(into {} (map vec (partition 2 [:a 1 :b 2 :c 3 :d 4])))
I think the requirement is that the argument to APersistentMap.conj
should implement Associative, which vectors d