← Back to archive

Stdle #14 · comparisons · 2026-06-20

What does this Ruby snippet output?

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

case {name: "Alice", age: 30}
in {name: String => n, age: (18..) => a}
puts "#{n} is #{a}"
end
Comparisons
4 attempts left

Answer & explanation