> (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 <gary.overg...@gmail.com> 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 call map vector with the list, then I no longer get  ([1 4 7] [2 5
> 8] [3 6 9])
>
> i.e.
> (def x '([1 2 3] [4 5 6] [7 8 9]))
>  (map vector x)
>   ==>([[1 2 3]] [[4 5 6]] [[7 8 9]])
>
> so is there a way to effectively expand the argument x (map vector x)
> to be
>  (map vector [1 2 3] [4 5 6] [7 8 9])
>
> --
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
Moritz Ulrich
Programmer, Student, Almost normal Guy

http://www.google.com/profiles/ulrich.moritz
BB5F086F-C798-41D5-B742-494C1E9677E8

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

Reply via email to