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

Add iterate for Reverse{<:NamedTuple} #43038

Merged
merged 4 commits into from
Nov 13, 2021
Merged

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Nov 11, 2021

Fixes the problem mentioned in #42991 (comment)

test/iterators.jl Outdated Show resolved Hide resolved
@bkamins
Copy link
Member Author

bkamins commented Nov 11, 2021

Also relatedly I would propose to come back to #16604 (comment) PR and make a decision.

test/iterators.jl Outdated Show resolved Hide resolved
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Nov 11, 2021
@vtjnash
Copy link
Member

vtjnash commented Nov 11, 2021

Maybe we could consider making this a good default definition too?

@bkamins
Copy link
Member Author

bkamins commented Nov 11, 2021

Maybe we could consider making this a good default definition too?

This would assume that by default the iterator supports 1-based indexing.

@bkamins
Copy link
Member Author

bkamins commented Nov 13, 2021

@JeffBezanson - is this good to merge? Independent of the other discussions about handling of Iterators.Reverse in general this definition should be safe to merge I think.

@simeonschaub simeonschaub merged commit ddd0e53 into JuliaLang:master Nov 13, 2021
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Nov 16, 2021
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
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.

5 participants