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) | - mapWithIndex: |
Applies mapper with index 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) | - mapFilterWithIndex: |
Applies mapper with index 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) | - filterWithIndex: |
Applies filter with index to every item and remove it if result is NO. More... | |
See Map/Filter/Reduce for concept of functional tools.
- (void) filter: | (NSAObjectPicker) | filter |
Applies filter to every item and remove it if result is NO.
- (void) filterWithIndex: | (NSAObjectPickerWithIndex) | filter |
Applies filter with index 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) mapFilterWithIndex: | (NSAObjectUnaryOperatorWithIndex) | mapper |
Applies mapper with index to every item and replace original item to new one or remove if new one is nil.
- (void) mapWithIndex: | (NSAObjectUnaryOperatorWithIndex) | mapper |
Applies mapper with index to every item and replace original item to new one.