A category for NSArray with several functional methods you've seen in other languages.
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
NSArray+FunctionalHelper.h
NSArray+FunctionalHelper.m
NSDictionary+FunctionalHelper.h
NSDictionary+FunctionalHelper.m
README.md

README.md

NSArray+FunctionalHelper

After using frameworks like Linq, Underscore.js, and ActiveRecord, we got used to many of the methods those provide for collections. Rather than continue living without them, we wrote a few ourselves.

Each method that returns an NSArray or NSSet creates a new object without mutating the original.

If you're using ARC, you'll need to turn it off for these files until they support ARC. Under the Target Settings -> Build Phases -> Compile Sources, find the NSArray+FunctionalHelper.m line and add the compiler flag -fno-objc-arc.