https://kotlinlang.org logo
m

mmaillot

10/06/2017, 1:13 PM
In this case you cast a mutableList in List. Just change the pointer. But yes, the list change but is not a list, it's a mutable list.