Andrew Walrond
4/24/2005 5:43:00 AM
On Sunday 24 April 2005 03:49, nobu.nokada@softhome.net wrote:
> > >>
> > >>That would definately be a good, backwardly compatible setp.
> > >
> > > What will be returned?
> >
> > An Array of the deleted values?
>
> It's not compatible obviously. Another method Hash#remove (and
> Array#remove also?) sounds better, I guess.
delete could return a value, or array of values, depending on whether the
number of arguments is 1 or >1, which would be compatible.
But #remove would be nicer :)
Andrew Walrond