One has a function that takes the next node as an argument, another just sets that up in a loop. Personally, I found the loop one a bit easier to visualize and debug via stepping through code, though admittedly the difference isn't huge.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments