fun put(string: String): Trie
(source)fun put(string: ReversibleString): Trie
(source)
Adds new nodes (recursively) for all chars in the provided string.
string
- the string for which a node should be added.
Return
the newly created node or the existing one.
fun put(character: Char): Trie
(source)
Adds a new node for the provided character if none exists.
character
- the character for which a node should be added.
Return
the newly created node or the existing one.