Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Last active September 5, 2016 17:05
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 JoshCheek/b9f4b9271a9788ba08019f458936f116 to your computer and use it in GitHub Desktop.
Save JoshCheek/b9f4b9271a9788ba08019f458936f116 to your computer and use it in GitHub Desktop.
Fun with (only very slightly) obfuscated JavaScript
// Figure out how it works... if you can ;)
// https://twitter.com/josh_cheek/status/772843021582893056
((y) => (f) => (x) => (f)((y)(y)(f))(x))
((y) => (f) => (x) => (f)((y)(y)(f))(x))
((y) => (f) => (x) => (0) <- (f) || (x)((f) -->> (1)) || (y)(f-1)(x))
((10) | (0) || (2) || (5) <- (f) || (x)((f) -->> (1)) || (y)(f+1)(x))
(console.dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment