Ad
  • Custom User Avatar

    I finally got it down. You need to be very careful with the methods on the EmptyList type

  • Default User Avatar

    Same problem

  • Custom User Avatar

    Does anybody know what the exact test is for

    "Removing 'a' from '(a)' -> l1.remove(first) is empty"

    This is one of 2 tests that are failing me and I don't know what it expects me to return.
    I tried returning this.next (which is an EmptyList() in that case)...


    Also

    " Removing 'b' from '(c a b a)' -> l4.remove l4.head() is l4.tail()"
    is failing me and I don't know why... it actually tries to remove a "b" from "(c a a)" ...