← Back to archive

Stdle #180 · hashes · 2026-12-03

What does this Ruby snippet output?

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

h = {a: 1, b: 2, c: 3}
puts h.transform_keys { |k| k.to_s }.inspect
Hashes
4 attempts left

Answer & explanation