Ruby - Blocks, Procs, and Lambdas
What will this code print?
my_proc = proc { |x, y| x + y }
puts my_proc.call(3, 4)my_proc = proc { |x, y| x + y }
puts my_proc.call(3, 4)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions