[Newbies] How to empty a collection?

cdrick cdrick65 at gmail.com
Mon Feb 18 19:56:12 UTC 2008


I would do:

aCollection removeAll: aCollection

Also, I have Aida in my image and I have:

OrderedCollection>>removeAll
	"remove all elements quickly"
	self become: OrderedCollection new

but not sure this way is good because of #become:. I don't know either
if this will keep your references.

hth

Cédrick


More information about the Beginners mailing list