NSMutableDictionary(FunkyPrefixedUtilities)
@interface NSMutableDictionary <KeyType, ObjectType>
(FunkyPrefixedUtilities) @end
This extension provides simple and easy to use functional and general utilities for NSMutableDictionary.
All the methods in this category are prefixed with the funky_
keyword for compatibility reasons. If you prefer unprefixed utilities, you should import NSDictionary+FunkyUtilities.h
.
See
Unprefixed counterpartNSMutableDictionary(FunkyUtilities)
See
Immutable counterpartNSDictionary(FunkyPrefixedUtilities)
-
Concatenates the current dictionary (in place) with the one given in the parameter. It does this by putting the existing elements first, and the elements in the provided dictionary afterwards.
See
Immutable counterpart-[NSDictionary(FunkyPrefixedUtilities) funky_merged:]
See
Unprefixed counterpart-[NSMutableDictionary(FunkyUtilities) merge:]
Declaration
Objective-C
- (void)funky_merge:(NSDictionary<KeyType, ObjectType> *)dictionary;
Swift
func funky_merge(_ dictionary: [AnyHashable : Any]!)
Parameters
dictionary
The other dictionary to merge with
-
Filters the dictionary (in palce) using the given predicate, keeping the elements that are passing the test.
See
Immutable counterpart-[NSDictionary(FunkyPrefixedUtilities) funky_filtered:]
See
Unprefixed counterpart-[NSMutableDictionary(FunkyUtilities) filter:]
Declaration
Objective-C
- (void)funky_filter:(BOOL (^)(KeyType, ObjectType))block;
Swift
func funky_filter(_ block: ((Any?, Any?) -> Bool)!)
Parameters
block
The predicate used to filter the results.