`list.associateBy { it.first }.mapValues { k,v -&g...
# getting-started
k
list.associateBy { it.first }.mapValues { k,v -> v.associateBy { it.second }}
t
The code makes sense, but I get
Copy code
{userId={s=userId, c=contentId, l=click}}
The key is the second char
k
Do you just want
groupBy
instead?
If that's still not what just give us a small self-contained example with an input list and an output list.
(and post in the channel itself again so everyone can see it)
t
Yes it was a groupBy... It's all fixed now. Thank you
👍 1