add
Adds the specified element to the end of this list.
Since Kotlin
1.0Return
true
because the list is always modified as the result of this operation.
Inserts an element into the list at the specified index.
Since Kotlin
1.1Adds the specified element to the end of this list.
Since Kotlin
1.1Return
true
because the list is always modified as the result of this operation.
Inserts an element into the list at the specified index.
This method is redeclared as abstract, because it's not implemented in the base class, so it must be always overridden in the concrete mutable collection implementation.
Since Kotlin
1.1Inserts an element into the list at the specified index.
Since Kotlin
1.3Adds the specified element to the end of this list.
Since Kotlin
1.3Return
true
because the list is always modified as the result of this operation.