Ruby - Blocks, Procs, and Lambdas
Given this code, what will be the output?
def test_lambda
l = ->(x) { return x * 2 }
l.call(5)
return 10
end
puts test_lambda