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
Added a separate note in the description to clarify.
And a second example. :-)
Watch in the title of the kata! :-)
--> number, not index!
You are the first, who interpretates it as index. ;-) I will change the description a little bit. Thanx for the hint.
But what is wrong with the example?
Sorry Matt, I hoped that with the example unit tests adding to the decription it would be pretty clear what the challenge entailed. If you'd like to make a suggestion for improving the description (or the example unit tests) I'd be happy to add it.
This comment is hidden because it contains spoiler information about the solution
It fails for the "don't modify the array" tests too. Because, well, you are modifying the array.
You should make a copy, modify it and return that.