Stdle #46 · iteration · 2026-07-22
What does this Ruby snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
result = [1, 2, 3].each_with_object([]) do |x, arr| arr.unshift(x)endputs result.inspectIteration
Stdle #46 · iteration · 2026-07-22
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
result = [1, 2, 3].each_with_object([]) do |x, arr| arr.unshift(x)endputs result.inspect