// HasPrefix returns true if any of the keys in the trie starts with `prefix`.
HasPrefix returns true if any of the keys in the trie starts with `prefix`.
// HasPrefix returns true if any of the keys in the trie starts with ` prefix ` .
func (t *Trie) HasPrefix(prefix string) bool {
	t.mu.RLock()
	defer t.mu.RUnlock()
	node := findNode(t.root, []rune(prefix))
	return node != nil
}
func ( t * Trie ) HasPrefix ( prefix string ) bool { t . mu . RLock ( ) defer t . mu . RUnlock ( ) node := findNode ( t . root , [ ] rune ( prefix ) ) return node != nil }
HasPrefix returns true if any of the keys in the trie starts with `prefix`.
HasPrefix returns true if any of the keys in the trie starts with ` prefix ` .