mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
feat: add Delete method for hashmap
This commit is contained in:
@@ -78,7 +78,7 @@ func (hm *HashMap) putValue(hash uint64, key, value any) any {
|
||||
return value
|
||||
}
|
||||
|
||||
// Delete key value in hashmap
|
||||
// Delete item by given key in hashmap
|
||||
func (hm *HashMap) Delete(key any) {
|
||||
hash := hm.hash(key)
|
||||
node := hm.table[hash]
|
||||
|
||||
Reference in New Issue
Block a user