Skip to content

Instantly share code, notes, and snippets.

@gonzedge
Created February 1, 2017 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gonzedge/9a3bee14cb2d2c74bbb27f0e102bec5a to your computer and use it in GitHub Desktop.
Save gonzedge/9a3bee14cb2d2c74bbb27f0e102bec5a to your computer and use it in GitHub Desktop.
Scan test
#!/usr/bin/env ruby
require 'rambling-trie'
trie = Rambling::Trie.create '/usr/share/dict/web2'
puts trie.scan 'beaut' # =>
# beauteous
# beauteously
# beauteousness
# beauti
# beautician
# beautied
# beautification
# beautifier
# beautiful
# beautifully
# beautifulness
# beautify
# beautihood
# beauty
# beautydom
# beautyship
@gonzedge
Copy link
Author

gonzedge commented Feb 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment