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.
The sum method in this case is more concise and works faster than inject.
This is why I love Ruby more than Python!
I knew Ruby could do it in less than 40 characters! Damn!
Wow, it's fascinating how my 10 to 15 lines of code turns into only just 1 line of code, happened before :)
Good Job.
Me too... Spoilers.... :)
That's an awsome method, I will be using it too,
Thanks
Awesome, learned a new method.
My favorite part of being on Codewars ;)
Bravo! Thanks to this solution I learned a new method.
I did a whole when/case and map while I could have done this ... Good code ;)
I'm getting this as well on Ruby