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

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...
 
(id) - firstObjectByFilteringOperatorWithIndex:
 Filters objects with index and returns the first object of result. More...
 

Detailed Description

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

See also
NSAFunctional.h
NSMutableArray(Functional)

Method Documentation

- (void) applyProcedure: (NSAObjectProcedure procedure

Apply procedure to objects.

Shallow wrapper of NSAApply

See also
NSAApply
- (void) applyProcedureWithIndex: (NSAObjectProcedureWithIndex procedure

Apply procedure with index to objects.

Shallow wrapper of NSAApply

See also
NSAApply
- (NSArray *) arrayByFilteringOperator: (NSAObjectPicker filter

Filters objects and returns result as array.

Shallow wrapper of NSAFilter

See also
NSAFilter
indexesOfObjectsPassingTest:
- (NSArray *) arrayByFilteringOperatorWithIndex: (NSAObjectPickerWithIndex filter

Filters objects with index and returns result as array.

Shallow wrapper of NSAFilterWithIndex

See also
NSAFilter
- (NSArray *) arrayByMapFilteringOperator: (NSAObjectUnaryOperator mapper

Maps mapper to objects and filters nil result and returns the result as array.

Shallow wrapper of NSAMapFilter

See also
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

See also
NSAMapFilter
- (NSArray *) arrayByMappingOperator: (NSAObjectUnaryOperator mapper

Maps mapper to objects and returns the result as array.

Shallow wrapper of NSAMap

See also
NSAMap
- (NSArray *) arrayByMappingOperatorWithIndex: (NSAObjectUnaryOperatorWithIndex mapper

Maps mapper with index to objects and returns the result as array.

Shallow wrapper of NSAMapWithIndex

See also
NSAMap
- (id) firstObjectByFilteringOperator: (NSAObjectPicker filter

Filters objects and returns the first object of result.

Shallow wrapper of NSAFilterWithIndex

See also
NSAFilter
- (id) firstObjectByFilteringOperatorWithIndex: (NSAObjectPickerWithIndex filter

Filters objects with index and returns the first object of result.

Shallow wrapper of NSAFilterWithIndex

See also
NSAFilter
- (id) reduce: (NSAObjectBinaryOperator reduce

Reduces objects and returns the result.

Shallow wrapper of NSAReduce

See also
NSAReduce
- (id) reduce: (NSAObjectBinaryOperator reduce
initialObject: (id)  initialObject 

Reduces objects and returns the result.

Shallow wrapper of NSAReduceWithInitialObject

See also
NSAReduceWithInitialObject

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