add

expect abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.0

Return

true because the list is always modified as the result of this operation.


expect abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.0
actual abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.1

Return

true because the list is always modified as the result of this operation.


actual abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.1
actual abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.0

Return

true because the list is always modified as the result of this operation.


actual abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.0
actual abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.3

Return

true because the list is always modified as the result of this operation.


actual abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.3
actual abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.8

Return

true because the list is always modified as the result of this operation.


actual abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.8
actual abstract override fun add(element: E): Boolean(source)

Adds the specified element to the end of this list.

Since Kotlin

1.8

Return

true because the list is always modified as the result of this operation.


actual abstract fun add(index: Int, element: E)(source)

Inserts an element into the list at the specified index.

Since Kotlin

1.8