rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.64k stars 299 forks source link

`LazyBuffer::get_at` (+ simplify `Combinations::nth`) #917

Closed kinto-b closed 3 months ago

kinto-b commented 3 months ago

As requested in https://github.com/rust-itertools/itertools/pull/914#issuecomment-2056489069, I've added a helper for returning the 'current' combination.

I also realised that there's no reason to delegate from .nth to .next() when n==0 so I junked it.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.45%. Comparing base (6814180) to head (68df645). Report is 54 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #917 +/- ## ========================================== + Coverage 94.38% 94.45% +0.06% ========================================== Files 48 48 Lines 6665 6866 +201 ========================================== + Hits 6291 6485 +194 - Misses 374 381 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.