From: David Alan Black Date: 2002-02-12T00:39:07+09:00 Subject: Re: array diff Hello -- On Mon, 11 Feb 2002, ts wrote: > >>>>> "D" == David Alan Black writes: > > D> If so, you'd have to differentiate the arrays based on size: > ^^^^^^^^^^^^^ > D> class Array > D> def minus other > D> (long,short) = [self,other].max.dup, [self,other].min > > This is not really what you do > > pigeon% ruby -e 'a = [1,2]; b = [1,1,2]; p [a,b].max' > [1, 2] Yikes. Forget my earlier code. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav