From: Bertram Scharpf Date: 2009-08-10T08:43:51+09:00 Subject: Re: How to define doubles: Array-to-hash Hi, Am Montag, 10. Aug 2009, 08:17:42 +0900 schrieb 7stud --: > Bertram Scharpf wrote: > > h = Hash.new { |h,k| h[k] = 0 } > > h = Hash.new { |h,k| h[k] = 0 } > > is equivalent to: > > h = Hash.new(0) Arrgh. Of course. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de