element

abstract fun element(): E(source)

Returns the next element in iteration without advancing the underlying iterator. If the iterator is already exhausted, null will be returned.

Return

the next element from the iterator

Throws

if the iterator is already exhausted according to hasNext