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.
Thanks!
There are at least three different patterns employed to make sure a value is always returned; the default case for a switch, throwing an exception for an unknown operation, and yours, with the intermediary value. From a debugging standpoint, I like yours best (though I opted for the default case strategy myself).