Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyProc vs lambda return and aritySingle-choice MCQ

What are the printed arity values for these four callables?

p proc { |a, b=1| }.arity p lambda { |a, b=1| }.arity p proc { |a, b, *c| }.arity p lambda { |a:, b: 2| }.arity