Skip to content

Instantly share code, notes, and snippets.

@forforf
Created October 13, 2011 14:45
Show Gist options
  • Save forforf/1284385 to your computer and use it in GitHub Desktop.
Save forforf/1284385 to your computer and use it in GitHub Desktop.
Recursive Lambda Functions
#Self Application Function
lambda {|f| f.call(f)}
g_x = lambda {|g_x|
lambda { |*args|
args
}
}
p lambda {|f| f.call(f)}.call(g_x).call(:a, :b, :c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment