Instance Method

keysOfEntries(passingTest:)

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.

Declaration

func keysOfEntries(passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>

Parameters

predicate

A block object that specifies constraints for values in the dictionary.

Return Value

The set of keys whose corresponding value satisfies predicate.

See Also

Filtering Dictionaries

func keysOfEntries(options: NSEnumerationOptions, passingTest: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.