<@U1C58NP0B> You could use `val myMap = mapOf(*pai...
# getting-started
r
@frogger You could use
val myMap = mapOf(*pairs)
, but since
mapOf
already takes
vararg Pair(K, V)
I dont't really see the purpose of your function
misread code example. Also,
Array<Pair<K, V>>
and
List<Pair<K, V>>
both already have a
toMap()
function on them.