Next: , Previous: Collection-converting, Up: Collection


1.36.6 Collection: copying Collections

copyReplacing: targetObject withObject: newObject
Copy replacing each object which is = to targetObject with newObject


copyWith: newElement
Answer a copy of the receiver to which newElement is added


copyWithout: oldElement
Answer a copy of the receiver to which all occurrences of oldElement are removed