Skip to content

Instantly share code, notes, and snippets.

@lannonbr
Last active November 23, 2015 03:56
Show Gist options
  • Save lannonbr/74837798b81aedfa2976 to your computer and use it in GitHub Desktop.
Save lannonbr/74837798b81aedfa2976 to your computer and use it in GitHub Desktop.
An interesting look at lambdas in Ruby
puts -> () {
f = -> () { -> () { -> (n) { -> () { -> (n) { n + 1 }.(1) }.() }.("Hello!") }.() }
g = -> () { -> () { f.() }.() }
-> () { g.() }.()
}.()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment