From: sto.mar@... Date: 2012-10-02T21:32:54+09:00 Subject: Re: how to read arrary with an array Am 02.10.2012 09:50, schrieb Richard D.: > So confirm my basic understanding, basically in this case the each inner > array would be a row, and each item would fall into some kind of column, > to use a spread sheet reference. So it would read > col 1, col2 > row1 Getting, 1 > row2 Numbers, 9 > row3 Letters, 13. In this case you can interpret the nested arrays in this way. But that's not a general rule for arrays. You could also consider an array that contains several columns, where each column has a couple of rows. That really depends on how you want to look at your data. > The author explained that an array is just a set of data. He just > didn't explain how an array within an array worked, but briefly showed > it existed. Well, he explaines at the start of chapter 8 that each "slot" is simply pointing to some object (which can be anything). And there is nothing special about "how an array within an array works". This is an array: objects = [5, ['a', 'b'], Time.new] It's first element `objects[0]` is 5 and `objects[1]` is the array ['a', 'b']. --