Tj Superfly wrote:
> Hey, I just have a quick question about arrays.
> 
> I have two different ones that I would like to compare.
> 
> Example:
> 
> Array 1: cats, dogs, monkeys
> 
> Array 2: cats, fish, dogs, birds, monkeys
> 
> Now, I would like to compare array 2 with array 1 and have it spit out
> any words that aren't in both... if that makes sense.
> 
> So what the program should output is fish, monkeys.

If arr2 is always a superset of arr1, then arr2-arr1

-- 
Posted via http://www.ruby-forum.com/.