Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 5 months agoInfallible Codelemmy.mlimagemessage-square140linkfedilinkarrow-up1474arrow-down132
arrow-up1442arrow-down1imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square140linkfedilink
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up2·5 months agoI don’t think there’s much to codegolf. The “obvious” solution (even() (($1%2))) is both shorter and faster. Don’t think it can be optimized much more.
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up1·5 months agoHaskell: 0 characters
I’m waiting for a code golf style solution now.
I don’t think there’s much to codegolf. The “obvious” solution (
even() (($1%2))) is both shorter and faster. Don’t think it can be optimized much more.Haskell: 0 characters