▲ 427 ▼ Infallible Code (feddit.uk) submitted 1 year ago by sirico@feddit.uk to c/programmerhumor@lemmy.ml 122 comments fedilink hide all child comments
[–] Aedis@lemmy.world 2 points 1 year ago (1 child) I'm waiting for a code golf style solution now. permalink fedilink source parent hideshow 1 child comment replies: [–] balsoft@lemmy.ml 2 points 1 year ago 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. permalink fedilink source parent
[–] balsoft@lemmy.ml 2 points 1 year ago 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. permalink fedilink source parent