Function iter_tools::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.