3 ms·
When I'm aiming for elegance, I like to define NAND as an N-ary function: nand() = false nand(x, ...) = !(x && !nand(...)) That eliminates the problem of nee
by deadbeeves 3y ago
When I'm aiming for elegance, I like to define NAND as an N-ary function:
nand() = false
nand(x, ...) = !(x && !nand(...))
That eliminates the problem of needing arbitrary constants.