Skip to content

Conversation

@siggiorn
Copy link

@siggiorn siggiorn commented Aug 7, 2015

Added two tests, one removes non-first value in list during iteration (and succeeds). The second removes first value in list during iterations (and fails).

@kilianc
Copy link
Owner

kilianc commented Sep 23, 2015

@siggiorn I just looked at this and to be honest and I am not sure which one is the correct behavior. The code is kinda old and I don't remember most of the thinking behind it. next() updates the cursor and returns _next, but _next and _current are the same on start.

Should removeCurrent set _next to _current as well when _current is _head?? O_o

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.

2 participants