Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2016 08:47
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 anonymous/1db160c063bf282ee01255532e770354 to your computer and use it in GitHub Desktop.
Save anonymous/1db160c063bf282ee01255532e770354 to your computer and use it in GitHub Desktop.
lambda { |f|
lambda { |x| x.call(x) }.call(
lambda { |x| f.call( lambda { |v| x.call(x).call(v) } ) } )
}.call(
lambda { |f|
lambda { |n| n == 0 ? 1 : n * f.call(n - 1) }
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment