From: Bil Kleb Date: 2007-05-04T05:40:09+09:00 Subject: Hash of arrays - initialization (was Re: Beyond YAML? (scaling)) Brian Candler wrote: > > samples[tag] ||= [] > samples[tag] << sample > > And you can probably combine: > > (samples[tag] ||= []) << sample Thanks; I figured the magic || operator was somehow involved, but I still don't have that thing memorized... yet more aggressive incompetence. :) Thanks again, -- Bil Kleb http://fun3d.larc.nasa.gov