Added -all method to NSArray and NSSet
Added the method (BOOL) -all:(block)
This is my first commit to an open source project. Let me know if I have to fix anything
duplicate #68
I am newbie here. Is this a duplicate pull request ?
@subramanianv it's implemented in #68, but not merged in yet. I'm not sure if it'll make it in master tho.
@supermarin, what do you mean "it's implemented in #68"? #68 is an issue, not a pull. I'd like this feature too.
The [NSArray all:] and [NSArray any:] methods are two that I really miss from Python. I'd vote for this to go in.
http://docs.python.org/2.7/library/functions.html#all
Maybe use the enumerateObjectsWithOptions:usingBlock method though to allow concurrent checking of all the items in the block.
That would be slower than a loop in most cases.
I'm sorry for the misunderstanding, was probably tired and closed the wrong PR / issue. Closing #68, reopening this one