Hi,
In message "[ruby-talk:01396] Re: Say Hi"
on 00/02/15, "Guy N. Hurst" <gnhurst / hurstlinks.com> writes:
|The item method requires the insert before/after distinction,
|but a slot method wouldn't. Simpler.
|
|Slot method:
|
| 0 1 2 3
|[ 1,2,3 ]
|
|or
|
|-4 -3 -2 -1
|[ 1, 2, 3 ]
It's simpler, but other methods consider negative index as
|-3 -2 -1
|[ 1, 2, 3 ]
That's kind a problem.