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.
updated
If a list is provided (even empty) it should also be returned, so this is incorrect. I'll update the description to make it clearer.
Ok, I understand what you mean now. Your solution is failing because you're actually mutating the default list, so it ends up as
[0]
. I could change the tests to only look at signature, but that's not really what I'm going for with this kata. Your solution will work if you slightly tweak it.Also, you're returning the same default instance when called with no argument, which is not the intended behavior. This is currently missing from the tests though.
This comment is hidden because it contains spoiler information about the solution
Added some basic random tests
It was poorly worded, should be more accurate now.