feat: add drop key functionality #6
2
table.go
2
table.go
@@ -111,7 +111,7 @@ func (t *Table[K, V]) Put(key K, value V) (err error) {
|
||||
|
||||
// Drop removes a value for a key in the table. Returns an error if its value
|
||||
// cannot be removed.
|
||||
func (t Table[K, V]) Drop(key K) (err error) {
|
||||
func (t *Table[K, V]) Drop(key K) (err error) {
|
||||
t.bucketA.drop(key)
|
||||
t.bucketB.drop(key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user