#iterator #tuple #last #whether #yield #extension #size

iterator-endiate

Extension method for (exact size) iterators which yields tuple containing whether item is last in iterator

3 unstable releases

0.2.1 Dec 30, 2022
0.2.0 Dec 28, 2022
0.1.0 Dec 7, 2021

#2118 in Rust patterns

Download history 18/week @ 2024-07-22 39/week @ 2024-07-29 99/week @ 2024-08-05 85/week @ 2024-08-12 31/week @ 2024-08-19 69/week @ 2024-08-26 136/week @ 2024-09-02 25/week @ 2024-09-09 14/week @ 2024-09-16 37/week @ 2024-09-23 23/week @ 2024-09-30 171/week @ 2024-10-07 26/week @ 2024-10-14 6/week @ 2024-10-21 8/week @ 2024-10-28 24/week @ 2024-11-04

193 downloads per month
Used in 4 crates (2 directly)

MIT license

4KB

Iterator endiate

Adds two new methods to iterators (specifically only ExactSizeIterators) for evaluating whether the item is the last in the iterator.

Similar to Iterator::enumerate which adds counts to items.

No runtime deps