Skip to content

Instantly share code, notes, and snippets.

@Xodarap
Created May 25, 2011 00:59
Show Gist options
  • Save Xodarap/990106 to your computer and use it in GitHub Desktop.
Save Xodarap/990106 to your computer and use it in GitHub Desktop.
Haskell Y Combinator
-- | Y combinator. Note that this doesn't actually compile in Haskell, but it's simpler
-- than the one which works
Y 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