From: Amos King Date: 2008-09-16T23:12:50+09:00 Subject: Re: array question Add the two arrays and call uniq on the new array On Mon, Sep 15, 2008 at 4:39 PM, Siep Korteling wrote: > Joel VanderWerf wrote: > (...) >> >> Or: >> >> require 'set' >> Set.new(a1) ^ Set.new(a2) >> > I figured this out by typo, allthough it is in the documentation. > Anyway, you can do > Set.new(a1) ^ a2 > > if a2 is enumerable. > > Regards, > > Siep > -- > Posted via http://www.ruby-forum.com/. > > -- Amos King A. King Software Development and Consulting, L.C. http://dirtyInformation.com -- Looking for something to do? Visit http://ImThere.com