From: serialhex Date: 2011-01-08T09:55:24+09:00 Subject: Re: Nooby question : multidimensional arrays. --0016e64c1e767799f304994b30b6 Content-Type: text/plain; charset=ISO-8859-1 uhm...i'm not sure what your trying to do with this, but what if i wanted to get the 5th element in the 4th dimension? i'd write the generator method something like this: while i < @n j = 0 while j < @m @array[[i]] << 0 j += 1 end i += 1 end (i havnt tested it, so it may not work) then you'd need to define the other accessor methods & such... but thats a start hex On Fri, Jan 7, 2011 at 6:56 PM, Kedar Mhaswade wrote: > Is this an okay job of implementing a multidimensional array? > > https://github.com/kedarmhaswade/datacube/blob/master/data_cube.rb > > Thank you for any feedback. > > -Kedar > > -- > Posted via http://www.ruby-forum.com/. > > --0016e64c1e767799f304994b30b6--