Stdle #73 · blocks · 2026-08-18
What does this Ruby snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
def run1 yield 2 if block_given?enddef run2(&b) b.call(2) if bendputs run1 { |x| x * 5 }puts run2 { |x| x * 5 }Blocks