this post was submitted on 15 Jul 2025
457 points (94.9% liked)

Programmer Humor

37243 readers
119 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Aedis@lemmy.world 2 points 3 days ago (1 children)

I'm waiting for a code golf style solution now.

[โ€“] balsoft@lemmy.ml 2 points 2 days 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.