|
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... | |
| (NSSet *) | - setByMappingOperator: |
| Maps mapper to objects and returns the result as set. More... | |
| (NSSet *) | - setByMapFilteringOperator: |
| Maps mapper to objects and filters nil result and returns the result as set. More... | |
| (NSSet *) | - setByFilteringOperator: |
| Filters objects and returns result as set. More... | |
See Map/Filter/Reduce for concept of functional tools.
Ordered set is treated as variation of array.
| - (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) reduce: | (NSAObjectBinaryOperator) | reduce |
| - (id) reduce: | (NSAObjectBinaryOperator) | reduce | |
| initialObject: | (id) | initialObject | |
Reduces objects and returns the result.
Shallow wrapper of NSAReduceWithInitialObject
| - (NSSet *) setByFilteringOperator: | (NSAObjectPicker) | filter |
| - (NSSet *) setByMapFilteringOperator: | (NSAObjectUnaryOperator) | mapper |
Maps mapper to objects and filters nil result and returns the result as set.
Shallow wrapper of NSAMapFilter
| - (NSSet *) setByMappingOperator: | (NSAObjectUnaryOperator) | mapper |