next i
This function works just like its Python counterpart. In particular, it retrieves the next item from an iterator.
|
|
|
|
|
When the iterator is exhausted, StopIteration is returned.
|