How about just
user=> (vector [1 2 3] [4 5 6] [7 8 9])
[[1 2 3]
[4 5 6]
[7 8 9]]
user=>
--
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 - p
The use of "partial" is unnecessary because "apply" takes any number
of arguments and expands its last argument.
(apply map vector [[1 2 3] [4 5 6] [7 8 9]])
is equivalent to
(map vector [1 2 3] [4 5 6] [7 8 9])
and results in
([1 4 7] [2 5 8] [3 6 9])
On Sun, Nov 14, 2010 at 8:30 AM, Moritz
> (apply (partial map vector) [[1 2 3] [4 5 6] [7 8 9]])
([1 4 7] [2 5 8] [3 6 9])
On Sun, Nov 14, 2010 at 2:16 PM, garf wrote:
> (map vector [1 2 3] [4 5 6] [7 8 9]) gives back ([1 4 7] [2 5 8] [3
> 6 9])
> but if I have a function that returns the list:
> '([1 2 3] [4 5 6] [7 8 9])
> and c