Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Not sure if I agree. The case satement referencing each index in each when is much more readable and more immediately understandable.
Beautiful! It's calling 'placeholder'?
Just thought you'd like to know that
(&:to_i)
is a short hand to{|s| s.to_i}
It sends the message to the current element. It can be used with any method ->
(&:upcase)
take care.
It seems like your solution wont work for grandchildren: