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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software