add

fun add(element: Long): Boolean(source)

Adds element to the MutableLongList and returns true.


fun add(index: Int, element: Long)(source)

Adds element to the MutableLongList at the given index, shifting over any elements at index and after, if any.

Throws

if index isn't between 0 and size, inclusive