RyanEdwardHall / anagrambler

Finds all anagrams and sub-anagrams in a string
MIT License
4 stars 1 forks source link

Refactor API #15

Closed mcgid closed 8 years ago

mcgid commented 8 years ago

These changes clean up the exported API a bit by introducing a Trie struct to contain the root node, and hold the Add and Search methods. It also renames some funcs, and adds rudimentary error support for Open().

It's not necessary, but I hope it will make the library easier to work with.