`list.associate { it to whateverValueYouNeed(it) }...
# getting-started
y
list.associate { it to whateverValueYouNeed(it) }
?