From: Tom Link Date: 2009-02-07T15:15:46+09:00 Subject: Re: Special Hash Constructors > def Hash.with(default=nil) >   new { | h, k | h[k] = default.dup } > end Not so good: > h = Hash.with(0) > h[1] TypeError: can't dup Fixnum I personally would appreciate a special constructor for Arrays.