Skip to content

Instantly share code, notes, and snippets.

@robertzk
Created January 10, 2014 01:19
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 robertzk/8345346 to your computer and use it in GitHub Desktop.
Save robertzk/8345346 to your computer and use it in GitHub Desktop.
def mystery_method(x)
->(z) do
x.inject(z) { |f, v| f(v) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment