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.
I refered to stellartux's solution.
Looking at other solutions,
it looks like validification could be simplified with regular expressions.
I will try in my next solution.
This comment is hidden because it contains spoiler information about the solution
Beautiful use of reduce
corrected solution.
It is still very clunky. But, at least, it works.
This is buggy. It was my aim to check solution against the full commit test. But I accidently committed it.
For some reason, commenting out the ".inspect(…)" will break the code.
Sadly, there is no way to uncommit this one.
So, please, be aware that this is not a working solution.