``` val list = listOf("abc", "defg", "hijkl") val ...
# announcements
c
Copy code
val list = listOf("abc", "defg", "hijkl")
val map = mapOf(*(list.map { it -> Pair(it, it.length())}.toTypedArray()))
Can anyone think of a better approach?