k-sone / critbitgo

crit-bit for golang and its applications (sorted map, IP routing table)
MIT License
45 stars 14 forks source link

make Walk API handle empty trie #13

Closed fujita closed 5 years ago

fujita commented 5 years ago

Except for Walk API, all the public API of Trie can be called safely with an empty trie. Consistency would be nice if Walk() can be called with an empty trie too.

k-sone commented 5 years ago

I didn't realize it. Thanks!