From: "Kroeger, Simon (ext)" Date: 2006-03-28T23:08:06+09:00 Subject: Re: Array resizing > From: Victor Shepelev [mailto:vshepelev@imho.com.ua] > > Sounds reasonable. > I can tell when I stumbled upon need for __resizing__ aray: > when tried to > use Array#transpose - it can't process > [ > [1,2,3], > [1], > [1,2,3,4] > ] a = [[1,2,3], [1], [1,2,3,4]] p SyncEnumerator.new(*a).map{|s| s} #=> [[1, 1, 1], [2, nil, 2], [3, nil, 3], [nil, nil, 4]] > I think, it isn't sole case, when we can want having array of > arbitrary > size. At least an Array#resize wouldn't hurt. > > David > > Victor. cheers Simon