From: Simon Strandgaard Date: 2004-03-30T16:49:24+09:00 Subject: Re: Surprise with Hash#new On Tue, 30 Mar 2004 08:28:40 +0000, Luis D Casillas wrote: > Today I spent 15 mins baffled by very weird behavior with a Hash, and I > just figured out where I went wrong. (I'm using ruby 1.8.1.) > > So, I wanted to create a dictionary of stacks, which in Ruby comes out > as being a Hash of Arrays. I wanted to be able to write code like this > here is some info about default values for Array/Hash: http://www.glue.umd.edu/~billtj/ruby.html#default http://www.rubygarden.org/ruby?HashOfHashes -- Simon Strandgaard