← Back to archive

Stdle #76 · iteration · 2026-08-21

What does puts [1, 2, 3, 4].each_cons(2).to_a.inspect output?

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

puts [1, 2, 3, 4].each_cons(2).to_a.inspect
Iteration
4 attempts left

Answer & explanation