io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 1 month agowith a break statement right?piefed.cdn.blahaj.zoneimagemessage-square40linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imagewith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 1 month agomessage-square40linkfedilinkfile-text
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up0·1 month 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.