iter-index crate
This is a simple extension trait that provides a more flexible alternative to the iterator's method enumerate(). It allows to:
- use a custom type for the index with
index::<T>() - define a custom start value with
index_start::<T>(start: T) - define a custom step value with
index_step::<T>(start: T, step: T).
Examples
use IndexerIterator;
let mut map = new;
for in vec!.into_iter.index
assert_eq!;
let items = vec!;
let mut result = items.into_iter.;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
let items = vec!;
let mut result = items.into_iter.;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License
This code is licensed under either MIT License or Apache License 2.0.