Ruby - Blocks, Procs, and Lambdas
Fix the error in this Ruby code:
my_lambda = ->(x, y) { x + y }
puts my_lambda.call(3)my_lambda = ->(x, y) { x + y }
puts my_lambda.call(3)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions