From: Robert Klemme Date: 2004-07-21T23:02:03+09:00 Subject: Re: Little query "Michael Neumann" schrieb im Newsbeitrag news:40FE7141.6050809@ntecs.de... > Yukihiro Matsumoto wrote: > > Hi, > > > > In message "Re: Little query" > > on 04/07/21, Peter Hickman writes: > > > > |Is there any chance that > > | > > |class Array > > | def first=(v) > > | self[0] = v > > | end > > | > > | def last=(v) > > | self[-1] = v > > | end > > |end > > | > > |might become part of the core? matz? > > > > I'm not enthusiastic for them. I feel like that they are not as > > useful as, "push" method for example. > > Me too. Then, there should be also Range#last= and Range#first=, but I > don't like them too much. IMHO Range is a different cup of tea because Ranges are immutable. So assigning would not be approrpiate here. robert