Skip to content

Instantly share code, notes, and snippets.

@apselon
Created July 27, 2017 14:07
Show Gist options
  • Save apselon/aa3986a299591c249f8e7604376d75cf to your computer and use it in GitHub Desktop.
Save apselon/aa3986a299591c249f8e7604376d75cf to your computer and use it in GitHub Desktop.
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