Instance Method

index(where:)

Returns the first index in which an element of the collection satisfies the given predicate.

Declaration

func index(where _predicate: (Base.Element) throws -> Bool) rethrows -> LazyPrefixWhileSequence<Base>.Index?
Available when Base conforms to Collection.