Created
April 26, 2012 20:16
-
-
Save ikataitsev/2502753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = %w{demo coda dome doom mode} | |
foo.each do |w| | |
if foo[0].bytes.sort == w.bytes.sort | |
puts w | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment