mapInPlace

fun <T> Array<T>.mapInPlace(transform: (T) -> T)
fun IntArray.mapInPlace(transform: (Int) -> Int)
fun DoubleArray.mapInPlace(transform: (Double) -> Double)

Applies the transformation to each element of the array in place