Created
September 19, 2014 02:58
-
-
Save FreeBirdLjj/b79055e1c7dc0d77cf33 to your computer and use it in GitHub Desktop.
A racket version of y-combinator.
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
(define (y-combinator fn) | |
((lambda (func) | |
(func func)) | |
(lambda (f) | |
(fn (lambda args | |
(apply (f f) args)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment