← Back to archive

Stdle #44 · mutability · 2026-07-20

What does this Ruby snippet output?

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

h = {a: 1, b: 2}
puts h.merge(b: 3, c: 4).inspect
Mutability
4 attempts left

Answer & explanation