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

    capacity

    The capacity-limit of the collection

    Return Value

    A new collection instance initialised with capacity