[Newbies] How to empty a collection?

Bert Freudenberg bert at freudenbergs.de
Mon Feb 18 20:33:08 UTC 2008


On Feb 18, 2008, at 20:41 , itsme213 wrote:

> I want to clear its contents (size goes back to zero), and can't  
> seem to
> find something like #clear or #empty. Cannot use a new collection  
> as there
> are shared references to it.


myCollection removeAllSuchThat: [:each | true]

- Bert -




More information about the Beginners mailing list