``` fun<T, U> MutableList<T>.mapInPlac...
# announcements
d
Copy code
fun<T, U> MutableList<T>.mapInPlace(f: (T) -> U): MutableList<U> {
    val theze = this
    return (this as MutableList<U>).apply {
        for (i in (0..size)) {
            val t: T = theze[i]
            this@apply[i] = f(t)
        }
    }
}