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.
OK, I never expected a code snippet to give me a good subject for a conversation with my wife. She's a maths teacher.
Wow, this one is almost the same as mine, just a bit less verbose. Very readable.
If I understood it properly, this solution "reduces" again and again, am I right? That is, it repeats all the needed additions on every FOR cycle, adding all numbers from the beginng, and creates anonymous functions. The solution looks super-neat at first, very few lines, but it looks slow to me.