[Newbies] Iterating and removing items from OrderedCollections

Bert Freudenberg bert at freudenbergs.de
Thu Sep 18 09:49:27 UTC 2008


Am 18.09.2008 um 11:40 schrieb Bert Freudenberg:

> belt size - desiredSize timesRepeat: [belt remove: nil ifAbsent: []].
>
> And to answer Marcin's next question, yes, that would be O(m^2).

Err, O(m*n). Need coffee.

- Bert -




More information about the Beginners mailing list