Created
October 16, 2016 10:30
-
-
Save polybuildr/4290688c778ca51bad8e004ea35c67ac 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
#lang racket | |
(define IF | |
(lambda (test) | |
(lambda (then) | |
(lambda (else) | |
((test then) else))))) | |
(define true | |
(lambda (x) | |
(lambda (y) | |
x))) | |
(define false | |
(lambda (x) | |
(lambda (y) | |
y))) | |
(((IF true) 1) 2) | |
(((IF false) 1) 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment