Takes the first n items of an iterable.
If n is larger than the size of the iterable, all items in the iterable will be yielded.
type of the item
the iterable
number of items to take
Takes the first n items of an iterable.
If n is larger than the size of the iterable, all items in the iterable will be yielded.