I've been told that it is possible to write 6 comparison operators ( < , <= , > , >= , == , != ) based on the definition of just one. The pattern supposedly starts with a strict inequality. < for example. By negating <, you can define >=, since they are opposites. I get stuck at this point. Perhaps I am starting from the wrong operator. It's not important of course, but I'm curious. Cheers!
Aucun commentaire:
Enregistrer un commentaire