Returns a new dictionary containing the key-value pairs of the dictionary that satisfy the given predicate.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
isIncluded
A closure that takes a key-value pair as its argument and returns a Boolean value indicating whether the pair should be included in the returned dictionary.
Return Value
A dictionary of the key-value pairs that is
allows.