feat: add drop key functionality #6

Merged
mvhutz merged 12 commits from feat/drop-item into main 2026-03-20 01:59:55 +00:00
Showing only changes of commit e2ba398a62 - Show all commits

View File

@@ -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 // Drop removes a value for a key in the table. Returns an error if its value
// cannot be removed. // 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.bucketA.drop(key)
t.bucketB.drop(key) t.bucketB.drop(key)