removing all elements from a collection -djb

Derek Brans brans at nerdonawire.com
Sun Apr 20 19:36:50 UTC 2003


Whoa!  Thanks.

My conclusion is that

Collection>>removeEachElement
    ^ self removeAll: self copy

Is correct.

Derek Brans
Nerd on a Wire
Web design that's anything but square
http://www.nerdonawire.com
phone: 604.874.6463
mailto: brans at nerdonawire.com

----- Original Message -----
From: "Ned Konz" <ned at bike-nomad.com>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, April 20, 2003 11:44 AM
Subject: Re: removing all elements from a collection -djb


> On Sunday 20 April 2003 11:08 am, Derek Brans wrote:
> > I can't seem to find a method for removing all elements from a
> > collection.  I wonder why that is?
>
> There was a *long* thread on this back in September.
>
>
http://lists.squeakfoundation.org/pipermail/squeak-dev/2002-September/thread
.html#44096
>
> --
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>
>
>




More information about the Squeak-dev mailing list