removeObject(identicalTo:in:)
Removes all occurrences of anObject within the specified range in the array.
Declaration
func removeObject(identicalTo anObject: Any, in range: NSRange)Parameters
- anObject:
The object to remove from the array within
aRange. - range:
The range in the array from which to remove
anObject.
Discussion
This method determines a match by comparing the address of anObject to the addresses of objects in the receiver. If the array does not contain anObject within aRange, the method has no effect (although it does incur the overhead of searching the contents).