insertAt

fun insertAt(arr: IntArray, value: Int, index: Int): IntArray
fun insertAt(arr: DoubleArray, value: Double, index: Int): DoubleArray

Returns a new array with the value inserted at the index.