← Back to archive

Stdle #123 · iteration · 2026-10-07

What does puts [1, 2, 3].map.with_index { |x, i| "#{i}:#{… output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

puts [1, 2, 3].map.with_index { |x, i| "#{i}:#{x}" }.inspect
Iteration
4 attempts left

Answer & explanation