hashvec
A HashVec is a hash map / dictionary whose key-value pairs are stored (and can be iterated over) in a fixed order, by default the order in which they were inserted into the map. It's essentially a vector whose values can be inserted/retrieved with keys.
Example
// Create a new hashvec containing pairs of animal names and species
let mut hashvec: = new;
// Insert values into the hashvec
hashvec.insert;
hashvec.insert;
hashvec.insert;
hashvec.insert;
hashvec.insert;
hashvec.insert;
hashvec.insert;
// Access a value by key
match hashvec.get
// Access an entry by index
let lee_value = hashvec;
assert_eq!;
// Get the index of a key
let lee_index = hashvec.index.unwrap;
assert_eq!;
// Mutate a value
match hashvec.get_mut
assert_eq!;
// Remove a value
hashvec.remove;
assert_eq!;
// Iterate over each of the key-value pairs in the hashvec
for in hashvec.into_iter
// Clear the hashvec
hashvec.clear;