Given the code below, how can you write the line this.moveTo("LA") more concisely?
data class Student (val name: String, var location: String) {
fun moveTo (newLoc: String) { location = newLoc }
}
fun main() {
Student ("Snow", "Cologne").run {
this.moveTo ("LA")
}