Skip to content

Instantly share code, notes, and snippets.

@polybuildr
Created October 16, 2016 10:30
Show Gist options
  • Save polybuildr/4290688c778ca51bad8e004ea35c67ac to your computer and use it in GitHub Desktop.
Save polybuildr/4290688c778ca51bad8e004ea35c67ac to your computer and use it in GitHub Desktop.
#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