Join Slack
Powered by
You can do it like that: ``` val list = mutableLis...
# getting-started
a
altavir
03/19/2018, 8:50 AM
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
2
Views
Open in Slack
Previous
Next