FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
See Map/Filter/Reduce for concept of functional tools. More...
#import <NSAFunctional.h>
Instance Methods | |
(void) | - applyProcedure: |
Apply procedure to objects. More... | |
(void) | - applyProcedureWithIndex: |
Apply procedure with index to objects. More... | |
(NSArray *) | - arrayByMappingOperator: |
Maps mapper to objects and returns the result as array. More... | |
(NSArray *) | - arrayByMappingOperatorWithIndex: |
Maps mapper with index to objects and returns the result as array. More... | |
(NSArray *) | - arrayByMapFilteringOperator: |
Maps mapper to objects and filters nil result and returns the result as array. More... | |
(NSArray *) | - arrayByMapFilteringOperatorWithIndex: |
Maps mapper with index to objects and filters nil result and returns the result as array. More... | |
(NSArray *) | - arrayByFilteringOperator: |
Filters objects and returns result as array. More... | |
(NSArray *) | - arrayByFilteringOperatorWithIndex: |
Filters objects with index and returns result as array. More... | |
(id) | - reduce: |
Reduces objects and returns the result. More... | |
(id) | - reduce:initialObject: |
Reduces objects and returns the result. More... | |
(id) | - firstObjectByFilteringOperator: |
Filters objects and returns the first object of result. More... | |
See Map/Filter/Reduce for concept of functional tools.
- (void) applyProcedure: | (NSAObjectProcedure) | procedure |
- (void) applyProcedureWithIndex: | (NSAObjectProcedureWithIndex) | procedure |
- (NSArray *) arrayByFilteringOperator: | (NSAObjectPicker) | filter |
- (NSArray *) arrayByFilteringOperatorWithIndex: | (NSAObjectPickerWithIndex) | filter |
Filters objects with index and returns result as array.
Shallow wrapper of NSAFilterWithIndex
- (NSArray *) arrayByMapFilteringOperator: | (NSAObjectUnaryOperator) | mapper |
Maps mapper to objects and filters nil result and returns the result as array.
Shallow wrapper of NSAMapFilter
- (NSArray *) arrayByMapFilteringOperatorWithIndex: | (NSAObjectUnaryOperatorWithIndex) | mapper |
Maps mapper with index to objects and filters nil result and returns the result as array.
Shallow wrapper of NSAMapFilterWithIndex
- (NSArray *) arrayByMappingOperator: | (NSAObjectUnaryOperator) | mapper |
- (NSArray *) arrayByMappingOperatorWithIndex: | (NSAObjectUnaryOperatorWithIndex) | mapper |
Maps mapper with index to objects and returns the result as array.
Shallow wrapper of NSAMapWithIndex
- (id) firstObjectByFilteringOperator: | (NSAObjectPicker) | filter |
Filters objects and returns the first object of result.
Shallow wrapper of NSAFilterWithIndex
- (id) reduce: | (NSAObjectBinaryOperator) | reduce |
- (id) reduce: | (NSAObjectBinaryOperator) | reduce | |
initialObject: | (id) | initialObject | |
Reduces objects and returns the result.
Shallow wrapper of NSAReduceWithInitialObject