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


1.37.7 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