trie-cr
trie-cr
A crystal based implementation of a trie data structure.
Installation
Add this to your application's shard.yml
:
Usage
require "trie"
trie = Trie(String).new
# => #<Trie(String):0x18b0d80 @children={}, @data=nil>
trie.insert("foo")
# => #<Trie(String):0x1127d20 @children={}, @data="bar">
trie.get("foo")
# => "bar"
trie.get("bar")
# Error
Contributing
Please, please, please send me feedback or feature requests. Trying to get into crystal and I'm happy to hear what could be done better.
- Fork it ( https://github.com/swarley/trie-cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- swarley Matt - creator, maintainer
Repository
trie-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- over 8 years ago
- April 1, 2017
License
MIT License
Links
Synced at
Tue, 15 Jul 2025 16:07:31 GMT
Languages