consume

emlib.iterlib.consume(iterator, n)[source]

Advance the iterator n-steps ahead. If n is none, consume entirely. :rtype: None

Note

The only reason to consume an iterator is if it this has some sort of side-effect