Removes the elements of the given sequence from the set.
SDK
- Xcode 8.3+
Framework
- Swift Standard Library
Declaration
Parameters
other
A sequence of elements.
other
must be finite.
Discussion
In the following example, the elements of the employees
set that are also elements of the neighbors
array are removed. In particular, the names "Bethany"
and "Eric"
are removed from employees
.