Trait grabbag::iter::intersperse::IntersperseIterator
[−]
[src]
pub trait IntersperseIterator<E>: Iterator<Item=E> + Sized { fn intersperse(self, inject: E) -> Intersperse<Self, E>; }
(a0, a1, ..., an), i → (a0, i, a1, i, ..., i, an)
Required Methods
fn intersperse(self, inject: E) -> Intersperse<Self, E>
Creates an iterator that yields inject
between each element of the input iterator. inject
will not appear as the first or last element of the resulting iterator.