-
Notifications
You must be signed in to change notification settings - Fork 247
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
Deprecate reverse_iter
to Iterators.reverse
#670
Deprecate reverse_iter
to Iterators.reverse
#670
Conversation
Seems like this is inline with the documentation for
I guess the question is particular for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea.
Lets give it a few days for others to chime in, and if noone says it is a bad idea lets merge it,
after bumping the patch version
Yeah. I wonder: even if it's okay for |
Absolutely. That's why it's called julia> Iterators.reverse(1:10)
10:-1:1 |
Update src/deque.jl Implement `last` for `Stack` and `reverse(::Stack)` Bump patch version Test `length` for `reverse`
fa0c868
to
7a3ee28
Compare
^ just rebased to resolve merge conflicts |
reverse_iter
to Iterators.reverse
reverse_iter
to Iterators.reverse
Merge and tag when ready. |
i don't have permissions to do that. But feel free to give me them if you want. Or please merge and tag when you've the time |
I gave you permissions several days ago. |
ah, nice, thanks! i missed that email (i get too many GitHub email and need to fix that) |
reverse_iter
withIterators.reverse
(notreverse
since we don't promise to make a copy) -- thoughts?Iterators.reverse(::T) -> Iterators.Reverse{T}
is promised by the Iterators API, since it's not documented or tested for in Base (i.e. the changes of this PR don't break that API).