Hi,

At Tue, 13 Jan 2004 11:01:38 +0900,
Tim Sutherland wrote:
> Taking the `rest' of a linked list is a constant time operation. In
> contrast, when you `ary[1..-1]', Ruby constructs a new array and fills it in
> using the entries in `ary`. The time for this is linear in terms of the
> number of entries in the array.

No, they can be shared and copy-on-write.

-- 
Nobu Nakada