In this code snippet, why does the compiler not allow the value of y to change?
for(y in 1..100) y+=2
y is an implicitly immutable value
y
y must be declared with var to be mutable
var
In order to change y, it must be declared outside of the loop
y can change only in a while loop