hastebrot
val people = listOf(Person("inky", 42), Person("pinky", 43)) val peopleMap = people.toMap({ it.name }, { it.age }) println(peopleMap)