NSMutableSet(FunkyPrefixedUtilities)
@interface NSMutableSet <ObjectType>
(FunkyPrefixedUtilities) @end
This extension provides simple and easy to use functional and general utilities for NSMutableSet.
All the methods in this category are prefixed with the funky_
keyword for compatibility reasons. If you prefer unprefixed utilities, you should import NSSet+FunkyUtilities.h
.
See
Unprefixed counterpartNSMutableSet(FunkyUtilities)
See
Immutable counterpartNSSet(FunkyPrefixedUtilities)
-
Takes the union of the two sets
See
Immutable counterpart-[NSSet(FunkyPrefixedUtilities) funky_takingUnion:]
See
Unprefixed counterpart-[NSMutableSet(FunkyUtilities) takeUnion:]
Declaration
Objective-C
- (void)funky_takeUnion:(NSSet *)set;
Swift
func funky_takeUnion(_ set: Set
Parameters
set
The other collection to union with
-
Takes the minus of the two sets by taking the current minus the provided one.
See
Immutable counterpart-[NSSet(FunkyPrefixedUtilities) funky_takingMinus:]
See
Unprefixed counterpart-[NSMutableSet(FunkyUtilities) takeMinus:]
Declaration
Objective-C
- (void)funky_takeMinus:(NSSet<ObjectType> *)set;
Swift
func funky_takeMinus(_ set: Set
Parameters
set
The other collection to minus with
-
Takes the intersection of the two sets.
See
Immutable counterpart-[NSSet(FunkyPrefixedUtilities) funky_takingIntersection:]
See
Unprefixed counterpart-[NSMutableSet(FunkyUtilities) takeIntersection:]
Declaration
Objective-C
- (void)funky_takeIntersection:(NSSet<ObjectType> *)set;
Swift
func funky_takeIntersection(_ set: Set
Parameters
set
The other collection to intersect with
-
Filters the set using the given predicate, keeping the elements that are passing the test.
See
Immutable counterpart-[NSSet(FunkyPrefixedUtilities) funky_filtered:]
See
Unprefixed counterpart-[NSMutableSet(FunkyUtilities) filter:]
Declaration
Objective-C
- (void)funky_filter:(BOOL (^)(ObjectType))block;
Swift
func funky_filter(_ block: ((Any?) -> Bool)!)
Parameters
block
The predicate used to filter the results.
-
Makes the set structure a squence with flat elements, containing no NSSets
See
Immutable counterpart-[NSSet(FunkyPrefixedUtilities) funky_flattened]
See
Unprefixed counterpart-[NSMutableSet(FunkyUtilities) flatten]
Declaration
Objective-C
- (void)funky_flatten;
Swift
func funky_flatten()