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

Which statement about lambda? is correct for these objects?

a = ->(x) { x } b = proc { |x| x } c = "abc".method(:upcase).to_proc def capture(&blk); blk.lambda?; end d = capture { }