removeAt

fun removeAt(arr: IntArray, index: Int): IntArray
fun removeAt(arr: DoubleArray, index: Int): DoubleArray

Removes the element at the index. If the index is out of bounds, then a copy of the array is returned.