Created
May 25, 2011 01:01
-
-
Save Xodarap/990113 to your computer and use it in GitHub Desktop.
YC example
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
-- An example of how the Y combinator expands into an infinite | |
-- list of function applications | |
Y f = (\x -> f (x x)) (\x -> f (x x)) | |
= f $ (\x -> f (x x)) (\x -> f $ x x) | |
= f $ f $ (\x -> f $ x x) (\x -> f $ x x) | |
= f $ f $ f $ (\x -> f $ x x) (\x -> f $ x x) | |
= f $ f $ f $ f $ (\x -> f $ x x) (\x -> f $ x x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment