Returns the index of the given element in the set, or nil
if the element is not a member of the set.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
member
An element to search for in the set.
Return Value
The index of member
if it exists in the set; otherwise, nil
.
Discussion
Complexity: O(1)