Instance Method

index(where:)

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

Declaration

func index(where _predicate: (Bound) throws -> Bool) rethrows -> Bound?
Available when Bound conforms to Strideable and Bound.Stride conforms to SignedInteger.