Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("key not found") ErrInvalidOrder = errors.New("order must be at least 3") )
Functions ¶
This section is empty.
Types ¶
type Btree ¶
func (*Btree[K, V]) Insert ¶
func (b *Btree[K, V]) Insert(key K, value V)
Insert adds a new key-value pair to the tree.
func (*Btree[K, V]) Iter ¶
func (b *Btree[K, V]) Iter() <-chan *item[K, V]
Iter returns a channel to traverse the tree.
Click to show internal directories.
Click to hide internal directories.