pub fn repeat_element<T: Clone>(
    it: impl Iterator<Item = T>,
    cnt: usize
) -> impl Iterator<Item = T>
Expand description

Repeat each element n times

See more here.