fix uh building the tree like 5 times too many

This commit is contained in:
neon443 committed 2025-11-11 20:29:27 +00:00
1 parent 97a8515ba7
commit 336dd16744
10 files changed
+33 -31

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ class Trie: ObservableObject {
@Published var root: TrieNode = TrieNode()
@Published var dict: [String:Emoji] = [:]
func insert(word: String, emoji: Emoji) {
func insert(word: String) {
let word = word.lowercased()
var currentNode = root
let indices = word.indices
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.