Isn&#39;t Cedrick&#39;s aida solution going to be significantly faster?<br><br><div class="gmail_quote">On Feb 19, 2008 1:02 AM, Ron Teitelbaum &lt;<a href="mailto:Ron@usmedrec.com">Ron@usmedrec.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sophie,<br><br>aCollection copy do: [:anElement |<br> &nbsp; &nbsp; &nbsp; &nbsp;aCollection remove: anElement<br>].<br><br>Why copy? &nbsp;If you start removing items from the collection, increasing the<br>index will cause you to skip elements.<br>
<font color="#888888"><br>Ron<br></font><div><div></div><div class="Wj3C7c"><br>&gt; -----Original Message-----<br>&gt; From: itsme213<br>&gt;<br>&gt; I want to clear its contents (size goes back to zero), and can&#39;t seem to<br>
&gt; find something like #clear or #empty. Cannot use a new collection as there<br>&gt; are shared references to it.<br>&gt;<br>&gt; Thanks - Sophie<br><br><br>_______________________________________________<br>Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br>