News for hackers. Stuff that matters.
Re:4B If Statements by chrisandchris on Thursday December 28, 2023 @03:07AM (#38791149)
The funniest (or best part) about those two packages is that is-even has a dependency to is-odd and does just negate the output of is-odd.
Re:4B If Statements by jl6 on Thursday December 28, 2023 @03:23AM (#38791247)
It’s true, the great thing about clean, reusable, modular code like this is that you can compose both of these packages to make a is-even-or-odd package.
Re:4B If Statements by lvncelot on Thursday December 28, 2023 @05:14AM (#38791960)
Well first you need to obviously build an OR package, part of your suite of logical operator packages, all depending on your battle-tested, high performance XOR package.
Re:4B If Statements by wiseowise on Thursday December 28, 2023 @05:19AM (#38791986)
Groundbreaking!
Re:4B If Statements by kparaju on Thursday December 28, 2023 @12:37PM (#38795972)
Re:4B If Statements by layer8 on Thursday December 28, 2023 @05:51AM (#38792140)
If would be even funnier if is-odd would simultaneously do the same thing in reverse.