peek

abstract fun peek(): T(source)

Returns the next element without consuming it.

Return

the next element without consuming it

Throws

in case there is no next element.