Skip to content

Conversation

@drewby08
Copy link

@drewby08 drewby08 commented Feb 1, 2018

No description provided.

letsdrill.rb Outdated
end

#We have a String lets see if its shortest
if shortest.nil? or x.size < shortest.size
Copy link
Member

Choose a reason for hiding this comment

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

Ruby provides a bunch of higher-level methods to simplify stuff like this. Enumerable#min_by should be a big help here. Scan through all those methods on Enumerable (Hash and Array too, if you feel like it). I think you'll find some neat stuff.


case integer
when 90..100
return "A"
Copy link
Member

Choose a reason for hiding this comment

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

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.

3 participants