Next: , Previous: , Up: SequenceableCollection   [Index]


1.151.8 SequenceableCollection: replacing items

replaceAll: anObject with: anotherObject

In the receiver, replace every occurrence of anObject with anotherObject.

replaceFrom: start to: stop with: replacementCollection

Replace the items from start to stop with replacementCollection’s items from 1 to stop-start+1 (in unexpected order if the collection is not sequenceable).

replaceFrom: start to: stop with: replacementCollection startingAt: repStart

Replace the items from start to stop with replacementCollection’s items from repStart to repStart+stop-start

replaceFrom: anIndex to: stopIndex withObject: replacementObject

Replace every item from start to stop with replacementObject.