On Dec 8, 2005, at 1:38 PM, Victor Reyes wrote:

> Ruby Team,
> I would like to define a 3x3 array of integers.
> Can anyone tell me how this is done?

Here's one way:

 >> Array.new(3) { Array.new(3) { 0 } }
=> [[0, 0, 0], [0, 0, 0], [0, 0, 0]]

Hope that helps.

James Edward Gray II