Ad
  • Default User Avatar

    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!

  • Custom User Avatar

    sometimes a generator is passed into xs so you have to invoke the next value from it using xs.next().value I believe.