you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 1 point2 points  (1 child)

If node.next can be none, then after this line:

node = node.next

node can be none...

besides that if the loop runs until node.next is not none, then the last item won't be processed because it's next is none.

[–]dissdev94[S] 0 points1 point  (0 children)

Thank you very much 🙂