set

abstract fun set(element: T)(source)

Replaces the last element returned by next or previous with the specified element element.

Since Kotlin

1.0

Throws

if neither next nor previous has not been called yet, or the most recent next or previous call has already been followed by a remove or add call.

abstract fun set(element: T)(source)

Replaces the last element returned by next or previous with the specified element element.

Since Kotlin

1.1

Throws

if neither next nor previous has not been called yet, or the most recent next or previous call has already been followed by a remove or add call.

abstract fun set(element: T)(source)

Replaces the last element returned by next or previous with the specified element element.

Since Kotlin

1.3

Throws

if neither next nor previous has not been called yet, or the most recent next or previous call has already been followed by a remove or add call.

abstract fun set(element: T)(source)

Replaces the last element returned by next or previous with the specified element element.

Since Kotlin

1.8

Throws

if neither next nor previous has not been called yet, or the most recent next or previous call has already been followed by a remove or add call.

abstract fun set(element: T)(source)

Replaces the last element returned by next or previous with the specified element element.

Since Kotlin

1.8

Throws

if neither next nor previous has not been called yet, or the most recent next or previous call has already been followed by a remove or add call.