Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyProc vs lambda usageSingle-choice MCQ

What is the arity reported for these four cases?

lambda { |a, b| }.arity # (A) proc { |a, b| }.arity # (B) lambda { |a, *b| }.arity # (C) proc { |*a| }.arity # (D)