4 ms·
> "(a && b) || (!a && !b)" It is XNOR, not XOR (no pun intended) Boolean algebra laws excellently help if there are many input aN. I used to use it to simplif
by Existenceblinks 10y ago
> "(a && b) || (!a && !b)"
It is XNOR, not XOR (no pun intended)
Boolean algebra laws excellently help if there are many input aN. I used to use it to simplify legacy ruby codes written by c-style programmer (you can imagine how the conditions look like)