The standard library provides
std.AutoHashMap,
which lets you easily create a hash map type from a key type and a value type.
These must be initiated with an allocator.
Let’s put some values in a hash map.
.fetchPut puts a value in the hash map, returning a value if there was
previously a value for that key.
std.StringHashMap
is also provided for when you need strings as keys.