FunkyMutableCollection
@protocol
FunkyMutableCollection <FunkyCollection, FunkyMutableCollectionWithCapacity>
This is a protocol for generic collections.
See
Immutable counterpartFunkyCollection
-
This method returns inserts an object into the collection
Declaration
Objective-C
- (void)addObject:(id)object;
Swift
func add(_ object: Any!)
Parameters
object
The object to insert
-
This method removes all the contents of the collection, providing an empty mutable collection
Declaration
Objective-C
- (void)removeAllObjects;
Swift
func removeAllObjects()