How would I transform this list of pairs: ```val p...
# announcements
e
How would I transform this list of pairs:
Copy code
val pairs = listOf(
    Pair("A", 1),
    Pair("A", 2),
    Pair("B", 3)
)
to this map:
Copy code
mapOf(
  "A" to listOf(1, 2),
  "B" to listOf(3)
)
i
.groupBy(keySelector = { it.first }, valueTransform = { it.second })
­čąç 3
e
Thank you, @ilya.gorbunov!