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 for noticing!
I didn't know about and while I was doing this exercise and found it only later in solutions of others. And after some time I feel it is confusing even for me to understand my "all id"
Oh, right, thanks a lot.
use let in the definition of next so that the sum is only computed once (the compiler is likely to optimize, but still).
You can use
and
instead ofall id
, since both are based on folding(&&)