andioop@programming.dev to Programming Horror@programming.devEnglish · edit-21 year agoGod I wish there was an easier way to do thisprogramming.devimagemessage-square35fedilinkarrow-up118arrow-down12
arrow-up116arrow-down1imageGod I wish there was an easier way to do thisprogramming.devandioop@programming.dev to Programming Horror@programming.devEnglish · edit-21 year agomessage-square35fedilink
minus-squareNullPointer@programming.devlinkfedilinkarrow-up1·11 months agohere is somewhat less: return (number % 2) == 0;
here is somewhat less:
return (number % 2) == 0;
return !(number & 1);