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 was unfortunate that when I defined the Kata I did not foresee that people would use those methods to avoid doing the actual recursive/functional implementastion of the solution. Later I wanted to make that feature unavailable to force the right thinking patterns, but that would most likely break all other solutions already offered. So, to avoid that I kept it as is. Some people will solve it the right way and others reading the answer could compare the solutions.
Oh, right. I used all of those in the interests of not reinventing the wheel. Maybe it would also make sense to disallow
Array.forEach
andArray.reduceRight
as well.