3 ms·
For what it's worth, in Kotlin you could also do the following: val newLoc = oldLoc.run { copy(x = x * 2, y = y * 2, z = z * 2) }
by rbehrends 3y ago
For what it's worth, in Kotlin you could also do the following:
val newLoc = oldLoc.run { copy(x = x * 2, y = y * 2, z = z * 2) }