re: Write a script to identify an anagram VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Looking up methods on the Array class, I see that I can refactor the above to: def are_anagrams? self.map { |w| sort_alphabetically(w) }.uni...

Very cool
i'm learning ruby currently and the refactor steps are very clear and easy to follow.
At then end only one line method!
i would have written this in 20 lines probably and in a couple of hours :)

Cool stuff.

code of conduct - report abuse