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

When a block is passed to a method and captured with `&blk`, does the resulting object remember whether it was originally a proc or a lambda?

def check(&blk) blk.lambda? end p check { } p check(&->(){})