That is actually not what I want. Consider the vector a table where each element which is itself a vector a row. And each element of a nested vector is a cell where its index indicates its column. Writing it as follows may make it more clear,
[ [1 2 3] [2 5 1] [4 2 6] ] I am comparing the values in each of the columns, so the result should be [4 5 6] where the first element represents the largest value in the first column, the second element represents the largest value in the second column, etc. I am about half way through the Programming Clojure book. Maybe as I get further along a more concise solution will become apparent. - John On Thu, Apr 8, 2010 at 12:50 PM, Nurullah Akkaya <nurul...@nakkaya.com>wrote: > > If you just want max in each group you can use, > > (map #(apply max %) [[1 2 3] [2 5 1] [4 2 6]]) > > this will give you, > > (3 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 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 > > To unsubscribe, reply using "remove me" as the subject. > -- - John -- 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