is there a method in List that allows me to do tha...
# announcements
x
is there a method in List that allows me to do that easily? Thanks
j
Check out
associateBy
, eg.
Copy code
listOf(obj1, obj2).associateBy { it.key }
4