Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Conversation

@subramanianv
Copy link

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

@supermarin
Copy link
Owner

duplicate #68

@supermarin supermarin closed this Feb 14, 2014
@subramanianv
Copy link
Author

I am newbie here. Is this a duplicate pull request ?

@supermarin
Copy link
Owner

@subramanianv it's implemented in #68, but not merged in yet.
I'm not sure if it'll make it in master tho.

@jonahb
Copy link

jonahb commented Mar 11, 2014

@supermarin, what do you mean "it's implemented in #68"? #68 is an issue, not a pull. I'd like this feature too.

@shepting
Copy link

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

@shepting
Copy link

Maybe use the enumerateObjectsWithOptions:usingBlock method though to allow concurrent checking of all the items in the block.

@jonahb
Copy link

jonahb commented Mar 28, 2014

That would be slower than a loop in most cases.

@supermarin
Copy link
Owner

I'm sorry for the misunderstanding, was probably tired and closed the wrong PR / issue.
Closing #68, reopening this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants