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

What is the arity of a proc created from a Symbol, e.g. `:upcase.to_proc`, and is it a lambda?

pr = :upcase.to_proc p pr.lambda? p pr.arity