FunkyCollection
@protocol FunkyCollection <NSFastEnumeration, FunkyCollectionCounterpart>
This is a protocol for generic collections.
See
Mutable counterpartFunkyMutableCollection
-
This method returns the number of elements in the collection.
Declaration
Objective-C
- (NSInteger)count;
Swift
func count() -> Int
Return Value
The number of elements as an integer
-
This method returns an immutable version of the current collection
Declaration
Objective-C
- (id)copy;
Swift
func copy() -> Any!
Return Value
The same collection as an immutable type
-
This method returns a mutable version of the current collection
Declaration
Objective-C
- (id)mutableCopy;
Swift
func mutableCopy() -> Any!
Return Value
The same collection as a mutable type