### Location https://doc.rust-lang.org/nightly/std/iter/fn.repeat_n.html ### Summary The newly stabalised [`std::iter::repeat_n`](https://doc.rust-lang.org/nightly/std/iter/fn.repeat_n.html) states: > This is very similar to using [repeat()](https://doc.rust-lang.org/nightly/std/iter/fn.repeat.html) with [Iterator::take()](https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.take), but there are two differences: > - repeat_n() can return the original value, rather than always cloning. > - repeat_n() produces an [ExactSizeIterator](https://doc.rust-lang.org/nightly/std/iter/trait.ExactSizeIterator.html). But the second item is no longer true, since [`impl ExactSizeIterator for Take<Repeat<T>>`](https://doc.rust-lang.org/nightly/std/iter/trait.ExactSizeIterator.html#impl-ExactSizeIterator-for-Take%3CRepeat%3CT%3E%3E) and [`impl ExactSizeIterator for Take<RepeatWith<F>>`](https://doc.rust-lang.org/nightly/std/iter/trait.ExactSizeIterator.html#impl-ExactSizeIterator-for-Take%3CRepeatWith%3CF%3E%3E) now exist and are stable.