@nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish • 8 months agoI wishi.imgur.comimagemessage-square189fedilinkarrow-up1928arrow-down117
arrow-up1911arrow-down1imageI wishi.imgur.com@nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish • 8 months agomessage-square189fedilink
minus-square@mellejwz@lemmy.worldlinkfedilinkEnglish2•8 months agoMy bad, I looked over the returns. If you return something there wouldn’t be much difference between both.
minus-square@Cosmicomical@lemmy.worldlinkfedilink1•7 months agoOk just to clarify this was a joke. It was just a pedantic improvement on a deranged solution. The only sensible way to do this is with % 2 or with bitwise operations imo.
minus-square@Valmond@lemmy.mindoki.comlinkfedilink1•8 months agoYeah gotta store the return value in a variable!
Each clause already returns
My bad, I looked over the returns. If you return something there wouldn’t be much difference between both.
Ok just to clarify this was a joke. It was just a pedantic improvement on a deranged solution. The only sensible way to do this is with % 2 or with bitwise operations imo.
Yeah gotta store the return value in a variable!