Hi. I only recently discovered this library. Thank you for sharing it.
I'm wondering if you're willing to expose some extra public methods,
or if you would consider changing the Trie class to not sealed (and make its internals protected too), so one can sub-class it and extend it.
What I'm missing at the moment is a function like LongestPrefixMatch which will return all matches (even shorter ones too).
I can call Contains for each substring of the longest match, but it feels sub-optimal, when the method has already traversed the tree and found them.
Thank you for your time.
Hi. I only recently discovered this library. Thank you for sharing it.
I'm wondering if you're willing to expose some extra public methods,
or if you would consider changing the
Trieclass to not sealed (and make its internals protected too), so one can sub-class it and extend it.What I'm missing at the moment is a function like
LongestPrefixMatchwhich will return all matches (even shorter ones too).I can call
Containsfor each substring of the longest match, but it feels sub-optimal, when the method has already traversed the tree and found them.Thank you for your time.