Removes the specified element from the set.
SDK
- Xcode 6.3+
Framework
- Swift Standard Library
Declaration
Parameters
member
The element to remove from the set.
Return Value
The value of the member
parameter if it was a member of the set; otherwise, nil
.
Discussion
This example removes the element "sugar"
from a set of ingredients.