AmrJyniat
val list = listOf<Pair<Int, Int>>() val (firstList, secondList) = ?? //how to do the mapping on the list here
ephemient
data class User(id, name) val list = List<User>() val (ids, names) = list.? // I need to map the ids into the first list and the names into the second list
val (ids, names) = list.map { it.id to it.name }.unzip()
A modern programming language that makes developers happier.