Create an iterator that limits the specified iterable to a specified number of items.
Arguments
- iterable
Iterable to iterate over.
- n
Maximum number of values to return.
- ...
Extra arguments for
iteror(iterable, ...)
Value
an iteror which will stop after yielding n
values.