Contents

firstIndex(of:)

Returns the index of the given element in the set, or nil if the element is not a member of the set.

Declaration

func firstIndex(of member: Element) -> Set<Element>.Index?

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

See Also

Finding Elements