Just inserted element.
HashTable!(string, int) hashTable; assert("Pachycephalosaurus" !in hashTable); hashTable["Pachycephalosaurus"] = 6; assert(hashTable.length == 1); assert("Pachycephalosaurus" in hashTable); hashTable["Pachycephalosaurus"] = 6; assert(hashTable.length == 1); assert("Pachycephalosaurus" in hashTable);
Inserts a new value at key or reassigns the element if key already exists in the hash table.