From: Austin Ziegler Date: 2002-11-09T07:55:26+09:00 Subject: Re: Multi-dimensional (like 2) arrays in Ruby On Sat, 9 Nov 2002 07:42:15 +0900, Ted wrote: >Does Ruby support other than 1 dimensional arrays? A Ruby array element can contain any Ruby object, so you can have an Array of Arrays. foo = [ [1, 2, 3], [4, 5, 6], [7, 8, 9]] p foo[0][0] # => 1 p foo[2][2] # => 2 -austin -- Austin Ziegler, austin@halostatue.ca on 2002.11.08 at 17.53.23