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

Given a lambda that takes two arguments, what is the result of calling it with a single array via the splat-less call below?

add = ->(a, b) { a + b } pair = [1, 2] add.call(pair)