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 approach relies on the assumption that the array contains only boolean values (true or false). If the array contains other values that might affect the sum, such as null, 0, or strings, then this approach might not give the correct result.