Instance Method

index(of:)

Returns the first index where the specified value appears in the collection.

Declaration

func index(of element: Base.Element) -> LazyPrefixWhileSequence<Base>.Index?
Available when Element conforms to Equatable.