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.
This comment is hidden because it contains spoiler information about the solution
I don't see the code but to guess a bit -
[].reduce(f, acc)
acc
is the initial value to use, for example when summing you start with 0:Two big reasons why one might want to supply this is if it's empty (otherwise there can be no result) or if the accumulated value has a different type/shape from the things in the array so that the first value of the array cannot be used as the initial value (which is what happens when omitting
acc
)