Skip to content

Comments

completed exercise#68

Open
ewarman wants to merge 3 commits intopaircolumbus:masterfrom
ewarman:master
Open

completed exercise#68
ewarman wants to merge 3 commits intopaircolumbus:masterfrom
ewarman:master

Conversation

@ewarman
Copy link

@ewarman ewarman commented Jan 12, 2017

@@ -1,5 +1,6 @@
# Implement this in such a way that when called below, detect_anagram will result in true or false.
def canonical(word)
word.downcase.chars.sort.join
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, the final join isn't necessary here. And standard styling in ruby is two spaces. Otherwise, looks good, very ruby-esque.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants