Repeat the entire iterator the given amount.
If the amount is zero (or negative), you'll end up with an empty iterator.
BEWARE: In order to be able to repeat everything, the entire collection must be kept in memory
(as opposed to repeatEach where only a single element needs to be stored).
Repeat the entire iterator the given amount. If the amount is zero (or negative), you'll end up with an empty iterator.
BEWARE: In order to be able to repeat everything, the entire collection must be kept in memory (as opposed to repeatEach where only a single element needs to be stored).
Example
Example