Re: Understanding sequences

2013-02-13 Thread Jonathon McKitrick
Yes, both work. Sorry, I've been staring at non-working code too long tonight. ;-) On Wednesday, February 13, 2013 10:49:58 PM UTC-5, Jonathon McKitrick 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 produ

Re: Understanding sequences

2013-02-13 Thread Sean Grove
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 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]

Understanding sequences

2013-02-13 Thread Jonathon McKitrick
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 Goo