add

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

Adds element to the MutableDoubleList and returns true.


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

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

Throws

if index isn't between 0 and size, inclusive