voddan
07/27/2017, 10:12 AMvar list1 = [1, 2] //mutable
let list2 = [3, 4] // immutable list
This is the difference between JVM's reference semantic and Swift's struct/class semantics. It is a fundamental difference in the platforms.benleggiero
07/27/2017, 12:08 PMvar list = [1, 2]
into
var list = mutableListOf(1, 2)