itertools

Function repeat_n

Source
pub fn repeat_n<A>(element: A, n: usize) -> RepeatN<A> 
where A: Clone,
Expand description

Create an iterator that produces n repetitions of element.