The key to be removed.
Number of the removed elements.
HashTable!(string, int) hashTable; hashTable["Euoplocephalus"] = 6; assert("Euoplocephalus" in hashTable); assert(hashTable.remove("Euoplocephalus") == 1); assert(hashTable.remove("Euoplocephalus") == 0); assert("Euoplocephalus" !in hashTable);
Removes the element with the key key.
The method returns the number of elements removed. Since the hash table contains only unique keys, remove always returns 1 if an element with the key was found, 0 otherwise.