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 good
This comment is hidden because it contains spoiler information about the solution
Ok, but the description says it won't happen.
This comment is hidden because it contains spoiler information about the solution
oh damn ive learned so much from doing this, thx y all
The description mentions from a to b (inclusive). Ins't this answer wrong in that sense ?
My concern exactly.
I like it!!!
Anyone want to break this down for me? I still don't really get how to set up procs like this.
You could do ".digits.reverse" instead of ".to_s.chars" too! :D
You wouldn't need to convert them back to integers later on if you do that.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's an offset. It sets starting value of the index (default is 0).
https://ruby-doc.org/core-2.4.1/Enumerator.html#method-i-with_index
It's awesome!
Nice!