/iterator-endiate

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

Primary LanguageRust

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.