Created
June 16, 2016 08:57
-
-
Save Mizzlr/9c289384734310814db0b5d0cbe62332 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # The above functions in python | |
| NULL = lambda x: x | |
| TRUE = lambda onTrue: lambda onFalse: onTrue | |
| FALSE = lambda onTrue: lambda onFalse: onFalse | |
| IF = lambda test: lambda onTrue: lambda onFalse: test(onTrue)(onFalse) | |
| AND = lambda bool1: lambda bool2: bool1(bool2)(bool1) | |
| OR = lambda bool1: lambda bool2: bool1(bool1)(bool2) | |
| NOT = lambda booly: booly(FALSE)(TRUE) | |
| # Very readable and terse indeed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment