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,
Expand description
Create an iterator that produces n
repetitions of element
.