Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning the actual trie? #5

Open
dkisselev opened this issue Aug 28, 2014 · 1 comment
Open

Returning the actual trie? #5

dkisselev opened this issue Aug 28, 2014 · 1 comment

Comments

@dkisselev
Copy link
Contributor

I'd like to be able to return the actual trie that's used. I'm looking to use this library to generate + serialzie a trie that will then be parsed by a javascript client in the browser.

Seems like just a getter for $trie should be enough

@dkisselev
Copy link
Contributor Author

Upon looking into it further, it looks like the internal trie is actually an array of more trie objects.

So ideally getTrie should convert everything into an associative array and return it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant