io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 7 days agowith a break statement right?piefed.cdn.blahaj.zoneimagemessage-square40linkfedilinkarrow-up1336arrow-down19file-text
arrow-up1327arrow-down1imagewith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 7 days agomessage-square40linkfedilinkfile-text
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·5 days agoOne 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.
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.