← Back to archive

Stdle #61 · iteration · 2026-08-06

What does this Ruby snippet output?

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

result = [[1, 2], [3], [4, 5, 6]].flat_map(&:itself)
puts result.inspect
Iteration
4 attempts left

Answer & explanation