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

Added NSArray -sortWithBlock, -uniq, -indexOf and -partition #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added NSArray -sortWithBlock, -uniq, -indexOf and -partition #51

wants to merge 1 commit into from

Conversation

gurgeous
Copy link
Contributor

I just switched my project to use ObjectiveSugar and I want these too. I also added [NSArray compare:], which is pretty much required in order for sortWithBlock to work rationally. It's easy to implement and just a useful thing to have in general. Hopefully I did everything correctly. :)

If you like these and accept the pull request, I have more things I want to add...

One suggestion - would you consider revamping or getting rid of the examples in the README? It feels hard to maintain and error prone. Maybe something like this instead?

https://github.com/zdavison/NSString-Ruby
(see the Method List section)

sortWithBlock also requires [NSArray compare:] to really be
useful. Includes tests.
@gurgeous
Copy link
Contributor Author

Just circling back on this one... Suggested improvements? Would this be easier if it were separate pull requests?

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.

1 participant