Ad
  • Default User Avatar

    Am I understanding this wrong or is this kata flawed? As I've understood tail, it's supposed to take the elements remaining after cutting off the head. But when running the tests, I get this:
    Tail failed. - Expected: [], instead got: [46,5,26,44]

    Edit: Nvm. Purity is key!

  • Default User Avatar

    The index keeps on running without any knowledge about the spliced array. It will therefore jump over some of the elements in the array.