On 29/12/2009, at 10:27 AM, Graham Cox wrote:

>  or iterate it by index backwards.


Or of course, just repeatedly delete item '0' until the count is 0. No need for 
an index, though it might not be all that efficient, if the internal 
implementation moves elements > removed index down one using an actual physical 
memory move.

--Graham

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to