Presumably just (map vector [1 3 5] [2 4 6] [10 20 30]) should do the trick.


On Wed, Feb 13, 2013 at 7:49 PM, Jonathon McKitrick <[email protected]>wrote:

> I have 3 arrays, and need to process one element of each array as a
> triplet.
>
> So [1 3 5] [2 4 6] [10 20 30]
>
> needs to produce
>
> [1 2 10]
> [3 4 20]
> [5 6 30]
>
> In Common Lisp, I would just use LOOP.  What's the correct Clojure way?
>
> --
> --
> 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.
>
>
>

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


Reply via email to