benleggiero
03/07/2017, 4:20 PMrobin
03/07/2017, 4:22 PMlistOf() returns an ordinary ArrayList, for example. The immutability is only in the interface, because you're getting a List, but you can simply cast that to MutableList and do whatever you want.evanchooly
03/07/2017, 10:08 PMevanchooly
03/07/2017, 10:08 PMbenleggiero
03/07/2017, 10:14 PMlistOf functions is the interface List, but unfortunately the implementation chosen is ArrayList, which is a MutableList