roon@lemmy.ml to Programmer Humor@programming.devEnglish · 1 year agoHilariouslemmy.mlimagemessage-square11fedilinkarrow-up1197arrow-down114cross-posted to: programmerhumor@lemmy.ml
arrow-up1183arrow-down1imageHilariouslemmy.mlroon@lemmy.ml to Programmer Humor@programming.devEnglish · 1 year agomessage-square11fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarePython@programming.devlinkfedilinkarrow-up1·1 year 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