The number of the inserted elements with a unique key.
HashTable!(string, int) hashTable; assert(hashTable.insert(hashTable.KeyValue("number", 1)) == 1); assert(hashTable["number"] == 1); assert(hashTable.insert(hashTable.KeyValue("number", 2)) == 0); assert(hashTable["number"] == 2);
Inserts a new element in the hash table.
If the element with the same key was already in the table, it reassigns it with the new value, but $(D_PSYMBOL insert) returns 0. Otherwise 1 is returned.