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.
Not sure if you're still interested in the hint, but try to think about what will happen if your function is called with these parameters:
nextItem([1,2,3,4], 4);
Good luck!
sometimes a generator is passed into xs so you have to invoke the next value from it using
xs.next().value
I believe.