Skip to content

Instantly share code, notes, and snippets.

@wyodeb
Created March 27, 2023 13:26
Show Gist options
  • Save wyodeb/38dac617c64d6449b661571806c5f333 to your computer and use it in GitHub Desktop.
Save wyodeb/38dac617c64d6449b661571806c5f333 to your computer and use it in GitHub Desktop.
sum = lambda {|a, b| a + b }
puts sum.call(2, 3) #=> 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment