On Tue, 24 Jun 2003 03:40:25 +0900, nobu.nokad wrote:

> Hi,
> 
> At Tue, 24 Jun 2003 01:39:15 +0900,
> Simon Strandgaard wrote:
>> irb(main):001:0> [].unshift()
>> IndexError: index -1 out of array
>>         from (irb):1:in `unshift'
>>         from (irb):1
>> irb(main):002:0> [].unshift(*[])
>> IndexError: index -1 out of array
>>         from (irb):2:in `unshift'
>>         from (irb):2
>> irb(main):003:0> [].push(*[])
>> => []
> 
> Also unshifting without arguments clobbers last element.
> 
>   $ ruby -e 'p [1].unshift()'
>   [nil]

I am curious, are these issues about #unshift being resolved ?


--
Simon Strandgaard