Skip to content

Instantly share code, notes, and snippets.

@menduz
Created November 7, 2017 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save menduz/657b9d2519d40d9996dc4d1e27ca2517 to your computer and use it in GitHub Desktop.
Save menduz/657b9d2519d40d9996dc4d1e27ca2517 to your computer and use it in GitHub Desktop.
DataWeave Y Combinator
fun Y(f) = do {
var x =
((h) -> (arguments) -> using(g = f(h(h))) g(arguments))
(((h) -> (arguments) -> using(g = f(h(h))) g(arguments)))
---
f(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment