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

What does calling `compute` return?

def compute l = lambda { return 10 } l.call p = Proc.new { return 20 } p.call 30 end p compute