From: Justin Collins Date: 2006-05-16T06:12:07+09:00 Subject: Re: 2 dimensional arrays Joe Seeley wrote: > The 2 dimensional array or table structure is extremely common, but I > don't see a simple/standard way to implement this in Ruby. Is there an > easy way to do this? > > One pretty easy way: irb(main):001:0> a = [ [1, 2, 3] ] => [[1, 2, 3]] irb(main):002:0> a[0] => [1, 2, 3] irb(main):003:0> a[0][1] => 2 -Justin