Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs fixed. Convinient function added. #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

pashaosipyants
Copy link

There was two bugs:
-one appeares when one tries to Get or Remove from empty list. (prevs function returns empty slice in this case, and there wasn't a check for this before prev[0] indexing)
-the other appeares when one tries RemoveElement with a key, which have several elements in the list. (infinite loop because of changing copy of variable)

Besides there was a lack of Insert function that returns the newly created Element (issue #2 )

Pasha and others added 6 commits March 18, 2018 05:48
README.md Outdated Show resolved Hide resolved
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