Stdle #24 · hashes · 2026-06-30
What does this Ruby snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
h = Hash.new { |hash, key| hash[key] = [] }h[:a] << 1h[:a] << 2h[:b] << 3puts h[:a].inspectputs h[:b].inspectputs h[:c].inspectHashes