Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idiomatic NSArray iteration #97

Merged
merged 1 commit into from Jul 19, 2023
Merged

Conversation

agg23
Copy link
Contributor

@agg23 agg23 commented Jul 19, 2023

I went to pull some data out of a NSArray, and found that the array did not follow idiomatic iterator design. I was going to leave the original map method around, but found that it was referenced in only a few spots, and several of those spots wanted iterators anyway.

So this adds NSArray iteration, and removes the .map(transform) method, which was equivalent to .iter().map(transform).collect()

@ryanmcgrath
Copy link
Owner

Ha, you found some very early code. This makes sense to me and I'm happy to merge it. Thanks!

@ryanmcgrath ryanmcgrath merged commit 9fbb332 into ryanmcgrath:trunk Jul 19, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants