Removes the given element and all elements subsumed by it.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.3+
The element of the set to remove.
The intersection of
[member] and the set, if the intersection was nonempty; otherwise,
In the following example, the
.priority shipping option is removed from the
options option set. Attempting to remove the same shipping option a second time results in
options no longer contains
.priority as a member.
In the next example, the
.express element is passed to
.express is not a member of
.express subsumes the remaining
.second element of the option set. Therefore,
options is emptied and the intersection between
options is returned.