Seems so simple, but, how do I initialize Kotlin’s MutableList to empty MutableList?

I could hack it this way, but I’m sure there is something easier available:

var pusta: List<Kolory> = emptyList()
var cos: MutableList<Kolory> = pusta.toArrayList()

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *