From: Joe Date: 2007-12-27T23:38:33+09:00 Subject: Re: Add Array#first= and Array#last= to std lib Is there a problem with doing something like this: an_array[-1] += 1 Joe On Dec 27, 2007 4:59 AM, Robert Klemme wrote: > Hi, > > just today I came across a situation where I needed Array#last= > because I wanted to do > > an_array.last += 1 > > Does anybody else see this as useful? Any issues with this? If not > I'll open an RCR. > > Kind regards > > robert > > -- > use.inject do |as, often| as.you_can - without end > >