pub fn repeat_n(generator: impl Generator + 'static, n: usize) -> impl Generator
repeat_n is a helper to create a RepeatN Generator