// FindByPrefix performs a prefix search against the keys in the trie.
// It returns all the keys starting with `prefix` in the trie.
FindByPrefix performs a prefix search against the keys in the trie.
It returns all the keys starting with `prefix` in the trie.
// FindByPrefix performs a prefix search against the keys in the trie . // It returns all the keys starting with ` prefix ` in the trie .
func (t *Trie) FindByPrefix(prefix string) []string {
	t.mu.RLock()
	defer t.mu.RUnlock()
	node := findNode(t.root, []rune(prefix))
	if node == nil {
		return nil
	}
	return collect(node)
}
func ( t * Trie ) FindByPrefix ( prefix string ) [ ] string { t . mu . RLock ( ) defer t . mu . RUnlock ( ) node := findNode ( t . root , [ ] rune ( prefix ) ) if node == nil { return nil } return collect ( node ) }
FindByPrefix performs a prefix search against the keys in the trie.
FindByPrefix performs a prefix search against the keys in the trie .