getAndMoveNext

Gets the next element, moves forward, and returns the got element.