lazexe
03/19/2018, 8:43 AMval list = mutableListOf(0.1, 0.2, 0.3)
for (x in list) {
x = 2.0
println(x)
}
is not compiling because val x cannot be reassigned
http://prntscr.com/it5xki
1. I have mutable list
2. Why I can’t change all values in the list to 2.0
?