fun insertAt(dest: FloatArray, src: FloatArray, offset: Int): FloatArray? { val temp = FloatArray(dest.size + src.size - 1) System.arraycopy(dest, 0, temp, 0, offset) System.arraycopy(src, 0, temp, offset, src.size) System.arraycopy(dest, offset + 1, temp, src.size + offset, dest.size - offset - 1) return temp }
Inserts one array into another by replacing specified offset .