From: Niklas Frykholm Date: 2001-06-18T15:06:18+09:00 Subject: [ruby-talk:16587] Re: Two (or more) dimensional arrays? On Mon, Jun 18, 2001 at 11:03:26AM +0900, Kirk Lowery wrote: > After reading my way through various documentation, I didn't find any > explanation of how to create arrays of more than one dimension. Is that > because ruby has a different idiom for it? A ruby Array can hold any kind of object. To make a multidimensional array, create an array that holds Array objects. irb(main):001:0> a = [[1,2,3],[4,5,6]] [[1, 2, 3], [4, 5, 6]] irb(main):002:0> a[0][2] 3 // Niklas