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.
It could probably be expressed in Scala too.
You might want to check out:
Dash and Hoogle have excellent integration in Emacs...
Absolutely, thank you.
Fixed.
Done, thanks.
The test code for this kata does some interesting/questionable manipulations which basically require the solution code to be written in a very strict manner. For your solution, this amounts to using
var
statements and semicolons, and removing the commented line. It's a shame the kata description doesn't mention these details.