Comment on I wish

<- View Parent
Acters@lemmy.world ⁨1⁩ ⁨year⁩ ago

Nice, how about bitwise & operator?

// n&amp;1 is 1, then odd, else even

return (!(n &amp; 1));

source
Sort:hotnewtop