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

For a non-lambda proc `pr = proc { |a, b| }`, what does `pr.arity` return and why does it differ from the lambda interpretation of strictness?

pr = proc { |a, b| } p pr.arity pr.call(1)