setmap
Package setmap
import "github.com/luxfi/node/utils/setmap"Types
Entry
SetMap
SetMap is a map to a set where all sets are non-overlapping.
func New[K, V comparable]() *SetMap[K, V]func (m *SetMap[K, V]) DeleteKey(key K) (set.Set[V], bool)func (m *SetMap[K, V]) DeleteOverlapping(set set.Set[V]) []Entry[K, V]func (m *SetMap[K, V]) DeleteValue(val V) (K, set.Set[V], bool)func (m *SetMap[K, V]) GetKey(val V) (K, bool)func (m *SetMap[K, V]) GetSet(key K) (set.Set[V], bool)func (m *SetMap[K, _]) HasKey(key K) boolfunc (m *SetMap[_, V]) HasOverlap(set set.Set[V]) boolfunc (m *SetMap[_, V]) HasValue(val V) boolfunc (m *SetMap[K, V]) Len() intfunc (m *SetMap[K, V]) LenValues() intfunc (m *SetMap[K, V]) Put(key K, set set.Set[V]) []Entry[K, V]