Created
July 27, 2017 14:07
-
-
Save apselon/aa3986a299591c249f8e7604376d75cf to your computer and use it in GitHub Desktop.
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
from __future__ import print_function | |
I = Identity = lambda x: x # Identitatsfunktion \ | |
K = Constancy = lambda x, y: x # Konstanzfunktion > SKI basis | |
S = Fusion = lambda x, y, z: x(z)(y(z)) # Verschmelzungfunktion / | |
IF = lambda boolean, true_case, false_case: boolean(true_case, false_case)(I) | |
true = K | |
false = lambda x, y: K(y, x) | |
IF(false, lambda x: print("This is true"), lambda x: print("This is false")) | |
#dc -e "0[p1+sblb10lb<a]salax" = ZGMgLWUgIjBbcDErc2JsYjEwbGI8YV1zYWxheCIK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment