Don Raul
10/21/2017, 4:50 PMfun<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)
}
}
}