Stdle #128 · hashes · 2026-10-12
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.each_with_object([]) { |(k, v), arr| arr << "#{k}=#{v}" }.inspectHashes
Stdle #128 · hashes · 2026-10-12
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
h = {a: 1, b: 2, c: 3}puts h.each_with_object([]) { |(k, v), arr| arr << "#{k}=#{v}" }.inspect