Returns the first index in which an element of the collection satisfies the given predicate.
SDK
- Xcode 11.2–11.2Deprecated
Framework
- Swift Standard Library
Declaration
func index(where _predicate: (Self.Element) throws -> Bool) rethrows -> Self.Index?