index(of:)
Returns the first index where the specified value appears in the collection.
Declaration
func index(of element: Self.Element) -> Self.Index?Returns the first index where the specified value appears in the collection.
func index(of element: Self.Element) -> Self.Index?