Does `mapOf` have any form that tapes type paramet...
# getting-started
n
Does
mapOf
have any form that tapes type parameters? Like
mapOf<String, Int>(...)
?
s
yes.
Screen Shot 2019-04-24 at 10.58.11 AM.png
n
Ah, I was trying that earlier and it wasn’t working, but I realize now it’s because I was passing the wrong from type. 🤦
s
you cal so a have a pair or a list of pairs and then get a map out of it
a
It always takes type parameters, it's just that usually they can be inferred
1