-
Notifications
You must be signed in to change notification settings - Fork 8
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
Functions for oldest to newest iterator #3
Functions for oldest to newest iterator #3
Conversation
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.
All good apart from the change, but I'm not sure I like the name "incremental", it sounds like a different concept. That said, I can't quite come up with a good name either, so let's leave this as is.
src/lib.rs
Outdated
/// assert_eq!(iter.next(), Some(&4)); | ||
/// ``` | ||
#[inline] | ||
pub fn incr_iter(&mut self) -> IncrIter<T> { |
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.
pub fn incr_iter(&mut self) -> IncrIter<T> { | |
pub fn incr_iter(&self) -> IncrIter<T> { |
The CI failure is due to rust-lang/rust#67408. |
Perhaps 'ascending' transmits a meaning that more closely resembles our objective. Regarding the CI failure, I'm not exactly sure how I would go about fixing it. |
Small curiosity: you added the |
Not that I can recall. Probably forgot about it. ¯\_(ツ)_/¯ |
I've took the liberty of adding it. Regarding the entire PR, I believe this is enough functionality. Can we merge? |
Yes, great! Do you mind squashing it into two commits, one adding the missing |
Remove unnecessary mutability Change names
Add missing #[inline] annotation
Done. |
Thanks! |
Closes #2.
I tried my best to follow your current philosophy for the project, but perhaps I might need some help writing the tests.