summaryrefslogtreecommitdiff
path: root/search/set.go
blob: 58ac2fb187f96026b161a3b6423f282de8bc8d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package search

import (
	"fmt"
	"codeberg.org/snonux/algorithms/ds"
)

var (
	NotFound       = fmt.Errorf("could not find entry")
	NotImplemented = fmt.Errorf("method not implemented")
)

type Set[K ds.Integer,V ds.Number] interface {
	Empty() bool
	Size() int
	Put(key K, val V)
	Get(key K) (V, error)
	Del(key K) (V, error)
}