F consume(iterator: Iterator, n: number)
Consumes a given number of iterations of the input iterator.
F exhaust(iterator: Iterator)
Exhausts the input iterator.