TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2017 |
Maintained by Laszlo Teveli.
Funky is a functional utility library written in Objective-C.
It provides a set of extension methods on NSArray, NSDictionary and NSSet for you to help dealing with common operations (usually in a functional way).
Full documentation is available at tevelee.github.io/Funky
The framework contains a set of extension methods on NSArray, NSSet and NSDictionary.
Using them is as simle as
NSArray<NSNumber*>* numbers = @[@1, @2, @3];
NSArray<NSString*>* strings = [numbers map:^id(NSNumber* item) {
return item.stringValue;
}];
or
bigNumbers = [numbers filter:^BOOL(NSNumber* item) {
return item.intValue > 1000;
}];
For the full list of utils, please check out tevelee.github.io/Funky
The framework includes some cool nil-tolerant collection behaviours as well:
NSArray* array = @[@0, @1, @2].nilTolerant;
NSLog(@"Items: %@", [array arrayByAddingObject:nil]);
Again, see the docs for more details
In case you need help or want to report a bug - please file an issue. Make sure to provide as much information as you can, sample code also makes it a lot easier for me to help you.
Anyone is more than welcome to contribute to Funky! It even can be an addition to the docs or to the code directly, by raising an issue or in form of a pull request. Both are equally valuable to me!
I am Laszlo Teveli, software engineer, iOS evangelist.
Feel free to reach out to me anytime via tevelee [at] gmail [dot] com.
Funky is available under the MIT license. See the LICENSE file for more information.