Anonymous user
Anagrams: Difference between revisions
→{{header|Ruby}}
(Crystal code) |
|||
Line 6,381:
anagram = Hash.new {|hash, key| hash[key] = []} # map sorted chars to anagrams
words = f.read.split
for word in words
|
(Crystal code) |
|||
Line 6,381:
anagram = Hash.new {|hash, key| hash[key] = []} # map sorted chars to anagrams
words = f.read.split
for word in words
|