andioop@programming.dev to Programming Horror@programming.devEnglish · edit-29 months agoGod I wish there was an easier way to do thisprogramming.devimagemessage-square24fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageGod I wish there was an easier way to do thisprogramming.devandioop@programming.dev to Programming Horror@programming.devEnglish · edit-29 months agomessage-square24fedilink
minus-squareNullPointer@programming.devlinkfedilinkarrow-up0·9 months agohere is somewhat less: return (number % 2) == 0;
here is somewhat less:
return (number % 2) == 0;
return !(number & 1);