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.
You can definitely make the argument that the average of an empty list is undefined because [0,] != [ ], and that returning NaN is more semantically correct. Saying it SHOULD be invalidated is a tad strong. There is a convention stating that the sum of zero elements is 0, but I don't know of any convention stating that the average should be 0. Imo an empty list can't have a well-defined mean.
This comment is hidden because it contains spoiler information about the solution
still clever for setting init to a double