HadesLang Doc
Search…
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 modified 2yr ago
Copy link
On this page
Methods
Examples