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

Comparing the arity values Ruby reports for these four callables, which statement is correct?

a = ->(a:, b:){} b = ->(a:, b: 1){} c = ->(a, b: 1){} d = proc{|(a,b)|}