Beware of the defualt_value semantics. You will end up with a shared array.
Hash.new
can a block to lazy initialize entries. That might be more helpful.
Also, relevant old issue: https://github.com/crystal-lang/crystal/issues/4376
Beware of the defualt_value semantics. You will end up with a shared array.
Hash.new
can a block to lazy initialize entries. That might be more helpful.
Also, relevant old issue: https://github.com/crystal-lang/crystal/issues/4376