how can i convert `listOf(Pair("a","b"), Pair("a",...
# getting-started
b
how can i convert
listOf(Pair("a","b"), Pair("a","c"), Pair("b","d"))
to
mapOf("a" to ["b","c"], "b" to "d")
?
d
groupBy({ it.first }, { it.second })
should do the trick.
1
b
thx!