addPrevious

abstract fun addPrevious(element: Element)(source)

Adds element right before the iterator's pointer.

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

Parameters

element

The element to add as the new previous element.