remove(at:)
Removes the element at the given index of the set.
Declaration
@discardableResult mutating func remove(at position: Set<Element>.Index) -> ElementParameters
- position:
The index of the member to remove.
positionmust be a valid index of the set, and must not be equal to the set’s end index.
Return Value
The element that was removed from the set.