Kontra, Gergely <kgergely / mlabdial.hit.bme.hu> wrote:
> Azt irtad, hogy

>>Holden Glova <dsafari / xtra.co.nz> writes:
>>
>>> On Fri, 17 May 2002 22:45, Yohanes Santoso wrote:
>>> > The way I am implementing right now is:
>>> > 80000.downto(2) {|i| array[i+1]=array[i]}
>>> irb(main):023:0> array[0..0] + [2] + array[1..-1]
>>> [1, 2, 3, 4, 5]

> What about a[1...1]=2

> Seems to work for me...

First neat use I've seen for ... 

-- 
Martin DeMello