News for hackers. Stuff that matters.
Re:Kotlin 1.2.20 released by relics443 on Wednesday January 17, 2018 @11:43AM (#16169351)
`List<T>` is technically immutable. You can make it mutable by casting to `MutableList<T>`, but that's something you have to explicitly do.
Re:Kotlin 1.2.20 released by lmm on Wednesday January 17, 2018 @11:56AM (#16169516)
It's not immutable, it's something analogous to C const: you can't mutate it, but it can be mutated under you. If you call .size() on it twice you might get different results.