public
Description: Objective-C category to add Python-like map, filter and reduce methods to Cocoa NSArray.
Homepage:
Clone URL: git://github.com/nst/nsarray-functional.git
nsarray-functional / NSArray+Functional.h
100644 19 lines (13 sloc) 0.44 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//
// NSArray+Functional.h
// Functional
//
// Created by Nicolas Seriot on 08.01.09.
// Copyright 2009 Sen:te. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
 
@interface NSArray (Functional)
 
- (NSArray *)filterUsingSelector:(SEL)aSelector, ...; // selector returning BOOL
- (NSArray *)mapUsingSelector:(SEL)aSelector, ...; // selector returning id
- (id)reduceUsingSelector:(SEL)aSelector; // selector returning id
 
@end