Function itertools::repeat_n[][src]

pub fn repeat_n<A>(element: A, n: usize) -> RepeatN<A>

Notable traits for RepeatN<A>

impl<A> Iterator for RepeatN<A> where
    A: Clone
type Item = A;
where
    A: Clone

Create an iterator that produces n repetitions of element.