FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSMutableDictionary(Functional) Category Reference

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...
 

Detailed Description

See Map/Filter/Reduce for concept of functional tools.

Dictionary is not fit for this functional tools. But this implementation takes concept of them.

See also
NSAFunctional.h
NSDictionary(Functional)

Method Documentation

- (void) filter: (NSAObjectPicker filter

Applies filter to every item and remove it if result is NO.

See also
NSAFilter
- (void) filterWithKey: (NSAObjectPickerWithKey filter

Applies filter with key to every item and remove it if result is NO.

See also
NSAFilter
- (void) map: (NSAObjectUnaryOperator mapper

Applies mapper to every item and replace original item to new one.

See also
NSAMap
- (void) mapFilter: (NSAObjectUnaryOperator mapper

Applies mapper to every item and replace original item to new one or remove if new one is nil.

See also
NSAMapFilter
- (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.

See also
NSAMapFilter
- (void) mapWithKey: (NSAObjectUnaryOperatorWithKey mapper

Applies mapper with key to every item and replace original item to new one.

See also
NSAMap

The documentation for this category was generated from the following file: