devela::_dep::itertools

Function repeat_n

pub fn repeat_n<A>(element: A, n: usize) -> RepeatN<A> 
where A: Clone,
Available on crate feature dep_itertools only.
Expand description

Create an iterator that produces n repetitions of element.