Instance Method

keysOfEntries(options:passingTest:)

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

Declaration

func keysOfEntries(options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>

Parameters

opts

A bit mask of enumeration options.

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(passingTest: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Set<AnyHashable>

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