From: Robert Klemme Date: 2003-06-25T17:16:15+09:00 Subject: Re: Concatenating Hash's "David King Landrith" schrieb im Newsbeitrag news:436D22A6-A65A-11D7-924A-000393DC9B9C@landrith.com... > Perfect. Thanks! > > I spent the last 1/2 hour combing through pickaxe for exactly this, and > I can't believe I missed it. In fact, it's a 1liner: def hash_join(h1,h2); h1.dup.update(h2); end you could also do class Hash; def +(o); dup.update(o); end; end h1={1,2,3,4} h2={"a","b"} h1 + h2 # => {"a"=>"b", 1=>2, 3=>4} :-) robert