Skip to content

Instantly share code, notes, and snippets.

@jdoiwork
Created May 28, 2014 14:52
Show Gist options
  • Select an option

  • Save jdoiwork/a5f67930227f60016a80 to your computer and use it in GitHub Desktop.

Select an option

Save jdoiwork/a5f67930227f60016a80 to your computer and use it in GitHub Desktop.
def λ (&block)
(lambda &block).curry
end
plus = λ {|x, y| x + y }
plus1 = plus[1]
three = plus1[2]
puts three
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment