From: William Djaja Tjokroaminata Date: 2002-11-25T14:43:02+09:00 Subject: Re: Not supposed behaviour of Array.new(2,[]) Chris wrote: > Yeah. I always wished there was a nice way to do that, like with blocks. > For example: >>>> a=Array.new(2) { [] } > [[], []] >>>> a[0].push(1) > [1] >>>> a > [[1], []] >>>> Hi, I think in 1.7.2 and later you can do just exactly like that. A wish come true? :) Regards, Bill