Skip to content

Instantly share code, notes, and snippets.

@irtaylor
Created November 20, 2017 14:08
Show Gist options
  • Save irtaylor/44e7d03c1aa9d5f82abb9be532288d3c to your computer and use it in GitHub Desktop.
Save irtaylor/44e7d03c1aa9d5f82abb9be532288d3c to your computer and use it in GitHub Desktop.
implementation (from memory) of the applicative order Y combinator
; Applicative Order Y-Combinator
(define Y
(lambda (f)
((lambda (x) (x x))
(lambda (x) (f (lambda (y) ((x x) y)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment