next

fun next(): E?

Moves the cursor forward and returns the element, or null when reaching the end.