you are viewing a single comment's thread
view the rest of the comments
[–] 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.

  • source
  • parent