From: Robert Klemme Date: 2013-01-31T21:12:01+09:00 Subject: Re: Select "columns" from multidimensional array? On Thu, Jan 31, 2013 at 11:34 AM, Joel Pearson wrote: > Praise Jesus! > > My initial output was the desired one, but the "transpose" method is > what I was missing. Thanks :) I'd really start by creating a class for this - or use Matrix from the standard library. irb(main):008:0> m = Matrix[[1,2,3],[4,5,6]] => Matrix[[1, 2, 3], [4, 5, 6]] irb(main):009:0> m.row 1 => Vector[4, 5, 6] irb(main):010:0> m.column 1 => Vector[2, 5] Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/