You can do it like that: ``` val list = mutableLis...
# getting-started
a
You can do it like that:
Copy code
val list = mutableListOf(0.1, 0.2, 0.3)
for (x in list) {
    var y = x
    y = 2.0
    println(y)
}
But it won't actually change contents of the list.
1