Removes the given element and all elements subsumed by it.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
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.