removeObjects(in:)
Removes the objects in the array from the mutable ordered set.
Declaration
func removeObjects(in array: [Any])Parameters
- array:
An array containing the objects to be removed from the receiving mutable ordered set.
Discussion
This method is similar to remove(_:), but allows you to efficiently remove large sets of objects with a single operation. If the receiving mutable ordered set does not contain objects in array, the method has no effect (although it does incur the overhead of searching the contents).
This method assumes that all elements in array respond to hash and isEqual(_:).