|
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) | - map: |
| Applies mapper to every item and replace original item to new one. More... | |
| (void) | - mapWithKey: |
| Applies mapper with key to every item and replace original item to new one. More... | |
| (void) | - mapFilter: |
| Applies mapper to every item and replace original item to new one or remove if new one is nil. More... | |
| (void) | - mapFilterWithKey: |
| Applies mapper with key to every item and replace original item to new one or remove if new one is nil. More... | |
| (void) | - filter: |
| Applies filter to every item and remove it if result is NO. More... | |
| (void) | - filterWithKey: |
| Applies filter with key to every item and remove it if result is NO. More... | |
See Map/Filter/Reduce for concept of functional tools.
Dictionary is not fit for this functional tools. But this implementation takes concept of them.
| - (void) filter: | (NSAObjectPicker) | filter |
Applies filter to every item and remove it if result is NO.
| - (void) filterWithKey: | (NSAObjectPickerWithKey) | filter |
Applies filter with key to every item and remove it if result is NO.
| - (void) map: | (NSAObjectUnaryOperator) | mapper |
Applies mapper to every item and replace original item to new one.
| - (void) mapFilter: | (NSAObjectUnaryOperator) | mapper |
Applies mapper to every item and replace original item to new one or remove if new one is nil.
| - (void) mapFilterWithKey: | (NSAObjectUnaryOperatorWithKey) | mapper |
Applies mapper with key to every item and replace original item to new one or remove if new one is nil.
| - (void) mapWithKey: | (NSAObjectUnaryOperatorWithKey) | mapper |
Applies mapper with key to every item and replace original item to new one.