Kotlin Collections are containers that hold multiple values β like lists, sets, and maps. Letβs try some examples:
listOf()
, setOf()
, and mapOf()
for read-only collections. Mutable versions are mutableListOf()
, mutableSetOf()
, and mutableMapOf()
.