Think about Loose Coupling | |
PerlMonks |
Re^4: Bit operations for beginnersby kaif (Friar) |
on Jun 28, 2005 at 16:50 UTC ( [id://470711]=note: print w/replies, xml ) | Need Help?? |
Yeah, you might enjoy: (p nor q) nor ((p nor p) nor (q nor q))Remember that nor returns true only if both arguments are false. So, we want to return true if the inputs aren't both false or both true. The former is simply p nor q and the latter is (not p) nor (not q) and we use the expansion of not.
In Section
Meditations
|
|