next

abstract operator override fun next(): Short(source)

Returns the next element and advances the iterator.

Call hasNext before advancing when exhaustion is possible. The implementation rejects calls after exhaustion or invalidation; the exception type depends on that implementation.

Return

the next element, including null for nullable element types.