Ruby - Blocks, Procs, and Lambdas
What is wrong with this Ruby code?
my_lambda = lambda { |x, y| x + y }
puts my_lambda.call(5)my_lambda = lambda { |x, y| x + y }
puts my_lambda.call(5)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions