Ruby - Blocks, Procs, and Lambdas
What will be the output of this Ruby code?
my_lambda = ->(x) { x + 3 }
puts my_lambda.call(4)my_lambda = ->(x) { x + 3 }
puts my_lambda.call(4)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions