Removes from the receiving set each object that isn’t a member of another given set.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The set with which to perform the intersection.
Combining and recombining sets
Adds each object in another given set to the receiving set, if not present.
Removes each object in another given set from the receiving set, if present.
Empties the receiving set, then adds each object contained in another given set.