Yields at most the first n items, then stops consuming the source.
n
The maximum number of items to yield.
A pipe that yields up to n items.
Yields at most the first
nitems, then stops consuming the source.