Just for adding more info, Kotlin offers both immutable List
and MutableList
that can be initialized with listOf
and mutableListOf
. If you're more interested in what Kotlin offers regarding Collections, you can go to the official reference docs at Collections.