Last active
August 29, 2016 15:54
-
-
Save mkusher/09b53dcd833b8f90eca09d65781dc686 to your computer and use it in GitHub Desktop.
Return true to win
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ReturnTrue; | |
// inspired by http://alf.nu/ReturnTrue | |
function transitive($a, $b, $c) { | |
return $a == $b && $a == $c && $b != $c; | |
} | |
function peano($a) { | |
return $a++ !== $a && $a++ === $a; | |
} | |
function symmetric($a, $b) { | |
return $a == $b && $a!=$b; | |
} | |
function nologic() { | |
return true === false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment