consume

sknano.core.consume(iterator, n=None)[source] [edit on github][source]

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

Parameters:
  • iterator (Iterator) –
  • n ({None, int}, optional) –