FunkyMutableCollectionWithCapacity
@protocol FunkyMutableCollectionWithCapacity <NSObject>
This is a protocol for generic mutable collections to be initialised with capacity
-
This method initialises a new instance with a given capacity
Declaration
Objective-C
+ (id)newWithCapacity:(NSUInteger)capacity;Swift
static func new(withCapacity capacity: UInt) -> Self!Parameters
capacityThe capacity-limit of the collection
Return Value
A new collection instance initialised with
capacity
View on GitHub
Install in Dash
FunkyMutableCollectionWithCapacity Protocol Reference