Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2016 13:00
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/ddf89985b22a3cbc35e2d9a6e5e6c350 to your computer and use it in GitHub Desktop.
Save anonymous/ddf89985b22a3cbc35e2d9a6e5e6c350 to your computer and use it in GitHub Desktop.
def foo2
lambda do |x|
lambda do |y|
yield(x, y)
end
end
end
def foo2(&block)
lambda do |x|
lambda do |y|
block.call(x, y)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment