(rdb:1) p wordFragment
"shovel"
(rdb:1) n
test-rdb:20: puts "dictionary size is #{@dict.size}"
(rdb:1) n
dictionary size is 235880
test-rdb:21: results = []
(rdb:1) n
test-rdb:22: @sortedDictKeys.each do |key|
(rdb:1) v l
results => []
wordFragment => "shovel"
(rdb:1) m WordDictionary
findWord
(rdb:1) n
test-rdb:23: results << key if key =~ /#{wordFragment}/
(rdb:1) p key
"A"
(rdb:1) finish
["reshovel", "shovel", "shovelard", "shovelbill", "shovelboard",
"shovelfish", "shovelful", "shovelhead", "shovelmaker", "shovelman",
"shovelnose", "shovelweed", "unshoveled"]