is there a more idiomatic way to write this? ``` ...
# announcements
x
is there a more idiomatic way to write this?
Copy code
repositories =  modules.map { it to "<mailto:git@bitbucket.org|git@bitbucket.org>:my/${it}.git" } .toMap()
oh nvm someone already answered
t
Kotlin 1.3 has
associateWith
that makes this nicer...
repositories = modules.associateWith { "<mailto:git@bitbucket.org|git@bitbucket.org>:/my$it.git"}
s
Does that just associate
it
with whatever is in that lambda?
t
Yes
👍 1