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.
If there were 2 items in the list and it asked for the item at index 3 (for example), would you throw an error with message
Invalid node at 1
? That doesn't seem like the behavior you want.technically, a stackoverflow, but yea def it'll run 4 evaaa cardi b voice
You would run in an infinite loop, if index < 0