Skip to content

Instantly share code, notes, and snippets.

@voidlily voidlily/lambdas.rb
Last active Oct 4, 2015

Embed
What would you like to do?
lambdas
l = lambda { |x| x + 5 }
l(3) # doesn't work
l.call(3) # works
l[3] # works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.