← Back to archive

Stdle #56 · hashes · 2026-08-01

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_values { |v| v * 10 }.inspect
Hashes
4 attempts left

Answer & explanation