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.
This comment is hidden because it contains spoiler information about the solution
Can the boilerplate code for Ruby also be changed to say "sequence" instead of iterable?
Mine is basically the same as this one (mine has a ternary operator in the block) and this has lots of upvotes. It makes me feel I am progressing in my Ruby skills now :)
Completely agree! It's also closer to how a human would work it out manually. For relatively simple tasks like this, the "obvious" approach that omost people would take, tends to be the most optimal too.
This comment is hidden because it contains spoiler information about the solution