If I got you right this time, if you
(apply interleave [[1 2 3] [2 5 1] [4 2 6]])
you will get,
(1 2 4 2 5 2 3 1 6)
then if you partition by 3,
(partition 3 (apply interleave [[1 2 3] [2 5 1] [4 2 6]]))
you get,
((1 2 4) (2 5 2) (3 1 6))
then as before applying max,
(map #(apply max %)
(partition 3 (apply interleave [[1 2 3] [2 5 1] [4 2 6]])))
will give you,
(4 5 6)
Regards,
--
Nurullah Akkaya
http://nakkaya.com
--
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
To unsubscribe, reply using "remove me" as the subject.