Trait grabbag::iter::StrideIterator [] [src]

pub trait StrideIterator<E>: Iterator<Item=E> + Sized {
    fn stride(self, n: usize) -> Stride<Self> { ... }
}

a, n  →  (ai | ai  →  a : imod n )

Provided Methods

fn stride(self, n: usize) -> Stride<Self>

Creates an iterator which yields every nth element of the input iterator, including the first.

Implementors