Create an object that behaves like a stream that returns values for a limited (or infinite) number of times.
For a full list of implementing classes, see Methods: loop and Methods: repeat