FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

This document describes the basic concept of functional tools: Map/Filter/Reduce

FoundationExtension adds small functional programming tools, called Map, Filter and Reduce. These are useful when used with array.

In short:

  • Map applies a function to all items.
  • Filter filters some items by a function.
  • Reduce derive a value from items.

If you are not familliar with this concept, see python document below - because I referenced it too:

http://docs.python.org/2/tutorial/datastructures.html#functional-programming-tools

If you are playing with array,

See also
NSArray(Functional)
NSMutableArray(Functional)

If you are playing with enumerator,

See also
NSAMap
NSAFilter
NSAMapFilter
NSAReduce
NSAReduceWithInitialObject
NSEnumerator(Functional)

About files,

See also
NSAFunctional.h