Ad
  • Custom User Avatar

    The push function is created in the very first part of this series: Linked Lists - Push & BuildOneTwoThree

    It's not neccessary in this kata, so the information (which was copy-pasted from other parts of this series) is simply distracting.

  • Custom User Avatar

    Alright, now I get what "This description is shared between all languages" means...
    Thanks for clearing that up!

    I don't think the ruby example would add anything useful to the description now, so I completely reverted my changes in the description.

  • Custom User Avatar

    Hi Lysann, thanks for contributing to this Kata!

    Unfortunately there is currently not way to have custom descriptions for each language, so it's probably better to keep the description as is (using JavaScript conventions and syntax as the default). This is consistent with all of the other linked list kata.

    Please remove all description changes except for the addition of the ruby snippet (you can leave that in and I'll approve this translation);
    ```ruby
    insert_nth(1 -> 2 -> 3 -> nil, 0, 7) === 7 -> 1 -> 2 -> 3 -> nil)
    insert_nth(1 -> 2 -> 3 -> nil, 1, 7) === 1 -> 7 -> 2 -> 3 -> nil)
    insert_nth(1 -> 2 -> 3 -> nil, 3, 7) === 1 -> 2 -> 3 -> 7 -> nil)