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: ((key: Key, value: Value)) throws -> Bool) rethrows -> Dictionary<Key, Value>.Index?