From: Alexander Schofield Date: 2002-01-24T14:42:16+09:00 Subject: Re: Array.last Weirdness I can think of several I've had to do it (the last one being David Alan Black's coding challenge). True enough it's not as common, but it is done and the fact that Array#last even exists is an acknowledgement that array[array.length-1] is ugly. Matt Armstrong wrote: > I don't think adding Array#last= is a bad idea, but replacing the last > element of an array with a different value isn't so common. When > building up an array, Array#push and Array#<< are useful though -- > they append the value to the array. > > -- > matt -- Alexander Schofield email: theschof@cs.com