Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyblocks procs lambdas bindingSingle-choice MCQ

What does `composed.call(3)` print for each operator, and how does method/proc composition order work?

f = ->(x) { x + 1 } g = ->(x) { x * 2 } p (f >> g).call(3) p (f << g).call(3)