Anagrams: Difference between revisions
Content added Content deleted
(Crystal code) |
|||
Line 6,381: | Line 6,381: | ||
anagram = Hash.new {|hash, key| hash[key] = []} # map sorted chars to anagrams |
anagram = Hash.new {|hash, key| hash[key] = []} # map sorted chars to anagrams |
||
uri('http://wiki.puzzlers.org/pub/wordlists/unixdict.txt') do |f| |
|||
words = f.read.split |
words = f.read.split |
||
for word in words |
for word in words |