← Back to archive

Stdle #26 · mutability · 2026-07-02

What does this Ruby snippet output?

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

a = "frozen"
a.freeze
b = a.clone
puts b.frozen?
puts b.equal?(a)
Mutability
2 lines
4 attempts left

Answer & explanation