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.
There an extra "]" in the first comment in instructions.
Got me when I copied that to test a solution.
How about this test?
Test.expect(solution((1..3).to_a, -3, 'a') == 1, 'Using a negative index returned the wrong value.')
-3 in this case is a correct index but some provided solutions would return the default value.