Skip to content

[Feature suggestion] AllPrefixMatches #29

@adaskos

Description

@adaskos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions