map
Maps keys to values, no fancy magic.
Methods
Method
Parameters
Return type
Is fixed?
put
any, any
null
❌
get
any
any
❌
index
any, any
null
❌
index
any
any
❌
Examples
with map from std:collections
let pets = map()
pets.put("Joe", "Dog")
pets.get("Joe")
// is equivalent to
pets["Joe"] = "Dog"
pets["Joe"]
Last updated