add

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

Adds element to the MutableIntList and returns true.


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

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

Throws

if index isn't between 0 and size, inclusive