And to get the enclosing vector:

(reduce conj [] (apply map vector [[:a :b] [1 2] ['a 'b]]))


2009/2/16 David Nolen <dnolen.li...@gmail.com>

>
> I'm sure it can be done, but it's not clear to me if you have a vector of
>> vectors
>> how Stuart's solution would work:
>>
>> 1:15 user=> (map vector vecs)
>
> ([[:a0 :a1 :a2]] [[:b0 :b1 :b2]])
>
>
> (apply (partial map vector) [[1 2 3] ['a 'b 'c] ["cat" "dog" "bird"]])
>
> works on a vector of vectors. The OP wanted a vector of vectors as a result
> where the subvector length is the same as the number of vectors originally
> passed in.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to