最佳答案
看起来很简单,但是,我如何将Kotlin的MutableList
初始化为空MutableList
?
我可以这样破解,但我相信有更简单的方法:
var pusta: List<Kolory> = emptyList()
var cos: MutableList<Kolory> = pusta.toArrayList()