[BUG] OrderedCollection>>insert:before:

Andreas Raab andreas.raab at gmx.de
Thu Jan 8 22:35:29 UTC 2004


> a) post the code for insert:berforeIndex as a [ENH] changeset
>       (this method has been implemented for RB, too,  but that one is 
> wrong)

insert: anObject beforeIndex: anIndex
    "Insert the receiver before the position anIndex"
    ^self add: anObject afterIndex: anIndex-1

(Re-)use the Source, Luke ;-)

Cheers,
  - Andreas



More information about the Squeak-dev mailing list