`list.associate { key to value }`. Or `list.associ...
# getting-started
d
list.associate { key to value }
. Or
list.associateBy { key }
, if the values are just your list elements.