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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That's a good objective and I have no issue with it - but there has to be some link between "I don't know about this" and "I know about this" that's solvable by the user.
I don't think there is enough information in the description for most uninformed users to get from point A to point B.
The point is to introduce this feature to those who may not have used it before. Everyone goes from not knowing about certain language features to knowing about them at some point. If you weren't aware of the language feature then this will clue you in that such a thing is possible.
Also many programming problems come down to just knowing the specific gimmic rather than finding it by problem solving. Usually that is some algorithm like fast prime calculation or efficient shortest path. You wouldn't be expected to derive Dijkstra's algorithm just by problem solving within a kata but those are still good problems that encourage you to research the solution.
This comment is hidden because it contains spoiler information about the solution
I'm guessing readability wasn't your primary aim with this solution :-)