CryPrompt::CryPromptTrie
Inherits Reference / Object
this will serve as the new suggestion tree structure. should be easier to maintain, troubleshoot, and fix it is a modified trie structure. probably not as efficient as using pointers but should be good enough to start with will not accept duplicate words entered
Constructors
new(word : Nil | String = nil, description : Nil | String = nil)
SourceInstance methods
<<(node : CryPromptTrie)
add a node to the current nodes child nodes do not add a node unless the node has a word. ie only the root node's word can be nil
child_nodes
Sourcechild_nodes=(child_nodes : Array(CryPromptTrie))
Sourcedescription
Sourcedescription=(description : String | Nil)
Sourcenodes_to_string_array
returns an array of strings containint the current nodes children's words
word
Sourceword=(word : String | Nil)
Source