Skip to content

Conversation

@leostenzel
Copy link

This PR addresses #941 and short circuits append(l1::MutableLinkedList, l2::MutableLinkedList) if l2 is empty.
Previously, l2.node would repeat infinitely.

There are also simple new tests to verify that appending from & to an empty MutableLinkedList gives the correct result.

And add tests for appending to and from an empty list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant