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

Overrides MutableCollection.add

Adds the specified element to the collection.

Return true if the element has been added, false if the collection does not support duplicates and the element is already contained in the collection.

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

Inserts an element into the list at the specified index.