addNext

abstract fun addNext(element: Element)(source)

Adds element right after the iterator's pointer.

The previous element is not changed, the provided element becomes the next element and the previously next element becomes an element after the next element.

Parameters

element

The element to add as the new next element.