roon@lemmy.ml to Programmer Humor@programming.devEnglish · 10 months agoHilariouslemmy.mlimagemessage-square11fedilinkarrow-up1196arrow-down114cross-posted to: programmerhumor@lemmy.ml
arrow-up1182arrow-down1imageHilariouslemmy.mlroon@lemmy.ml to Programmer Humor@programming.devEnglish · 10 months agomessage-square11fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarePython@programming.devlinkfedilinkarrow-up1·10 months agoI’ll do you one better function* sorry() { yield "I'm sorry"; } Call sorry.next().value as many times as you need to baby, hell you can even use it in a for-of loop because Generator functions are Iterable. I fucking love JavaScript
I’ll do you one better
function* sorry() { yield "I'm sorry"; }
Call sorry.next().value as many times as you need to baby, hell you can even use it in a for-of loop because Generator functions are Iterable. I fucking love JavaScript