Skip to main content

Map

You can create associative arrays by [IndexType]ValueType:

map mutable: [string]i32 = { {"world": 1}, {"!": 2} };
map["hello"] = 42;
foo = map["hello"];

To remove a key-value pair from associative arrays, use the remove member function:

map mutable: [string]i32 = { {"hello": 0}, {"world": 1}, {"!": 2} };
map.remove("hello");

Associative Array Members

NameTypeDescription