Join Slack
Powered by
is there a method in List that allows me to do tha...
# announcements
x
xii
03/13/2020, 11:37 AM
is there a method in List that allows me to do that easily? Thanks
j
jonreeve
03/13/2020, 11:40 AM
Check out
associateBy
, eg.
Copy code
listOf(obj1, obj2).associateBy { it.key }
➕ 4
2
Views
Open in Slack
Previous
Next