-
Notifications
You must be signed in to change notification settings - Fork 293
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 .get(range)
#891
Merged
jswrenn
merged 10 commits into
rust-itertools:master
from
Philippe-Cholet:447-get-range
May 14, 2024
Merged
Add .get(range)
#891
jswrenn
merged 10 commits into
rust-itertools:master
from
Philippe-Cholet:447-get-range
May 14, 2024
Commits on May 14, 2024
-
Add
Itertools::get
withIteratorIndex
Co-Authored-By: wod3 <17980899+wod3@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a6766fd - Browse repository at this point
Copy the full SHA a6766fdView commit details -
Co-Authored-By: TrolledWoods <26680270+trolledwoods@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b190bfc - Browse repository at this point
Copy the full SHA b190bfcView commit details -
Fix my own review. Update docs. Fix a warning with `#[cfg(doc)]`. Use public path `traits::IteratorIndex` instead of private path `iter_index::IteratorIndex`.
Configuration menu - View commit details
-
Copy full SHA for 6451862 - Browse repository at this point
Copy the full SHA 6451862View commit details -
As we should, I checked it can't pass without `let _ =`.
Configuration menu - View commit details
-
Copy full SHA for ed2feb7 - Browse repository at this point
Copy the full SHA ed2feb7View commit details -
Remove the unspecified check about
.get(exhausted_range_inclusive)
`RangeInclusive::is_empty` (rust 1.47+) is in conflict with our MSRV (1.43.1) so we can't use it yet. The unspecified behavior is documented in `Itertools::get` so we simply remove this.
Configuration menu - View commit details
-
Copy full SHA for 6f48e32 - Browse repository at this point
Copy the full SHA 6f48e32View commit details -
Unless there is a reason to prefer `Take<Skip>` over `Skip<Take>`?!
Configuration menu - View commit details
-
Copy full SHA for e5b8c12 - Browse repository at this point
Copy the full SHA e5b8c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70e3a1a - Browse repository at this point
Copy the full SHA 70e3a1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4d5be3 - Browse repository at this point
Copy the full SHA d4d5be3View commit details -
get(s..=usize::MAX)
should be fine whens != 0
Test for coverage
Configuration menu - View commit details
-
Copy full SHA for 0ac556c - Browse repository at this point
Copy the full SHA 0ac556cView commit details -
A `use itertools::*;` might conflict with such a general function name.
Configuration menu - View commit details
-
Copy full SHA for 3f49188 - Browse repository at this point
Copy the full SHA 3f49188View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.