package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 27, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
ΒΆ
Package trie provides structure with Unicode keys
could hold this one (π¦) --> (π) --> (π―)
type Trie[V any] struct {
}
func (t *Trie[V]) Clear()
Clear removes all elements.
Has returns 'true' if the three has a node with not nil value.
Insert adds element to the three.
Len returns number of values.
NodeLen returns number of nodes (with value and without).
Remove removes node with value if exists. Also remove all empty upper nodes.
Search finds a node with value. If there is no node returns default value and 'false'.
Source Files
ΒΆ
Click to show internal directories.
Click to hide internal directories.