[Newbies] Iterating and removing items from OrderedCollections

Ian J Cottee icottee at bluefountain.com
Thu Sep 18 08:51:49 UTC 2008


On Thu, Sep 18, 2008 at 9:44 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> I guess it doesn't get much more elegant and efficient than
>
>        start := coll findFirst: [:each | each ~~ nil].
>        coll removeFirst: start-1.
>

Interesting - many thanks Bert. I'll give that a try later on.


More information about the Beginners mailing list