Popularity
2.9
Growing
Activity
1.1
Growing
8
2
0
Programming language: Crystal
License: MIT License
Tags:
Algorithms And Data Structures
crie alternatives and similar shards
Based on the "Algorithms and Data structures" category.
Alternatively, view crie alternatives based on common mentions on social networks and blogs.
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of crie or a related project?
README
Crie
Compile-time Trie in Crystal
Installation
- Add the dependency to your
shard.yml
:
dependencies:
crie:
github: c910335/crie
- Run
shards install
Usage
require "crie"
# Build Trie at compile time
Crie << "En aru'din Raszagal"
Crie << ["Khassar de templari", "Zhakul inok"]
Crie.add_suffixes_of("Terrie Khala")
# Search at compile time
Crie.search("En Taro Adun") # => 3
Crie.search("Khala dora") # => 5
Crie.search("Nas beru uhn'adarr") # => 0
# Search at run time
crie = Crie.new
crie.search("Zhara ku'nuul") # => 3
crie.search("Khas ara'shar") # => 4
crie.search("Shozak mok nul") # => 0
Contributing
- Fork it (https://github.com/c910335/crie/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
- Tatsiujin Chin - creator and maintainer
*Note that all licence references and agreements mentioned in the crie README section above
are relevant to that project's source code only.