Re: Array resizing


#1

]
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


#2

Kroeger, Simon (ext) wrote:

At least an Array#resize wouldn’t hurt.

maybe Array#size= would be more Rubyesque :smiley:

lopex