Li Chen wrote:
(...)
> 2)Is there mentod in Array class that can  return the element only
> unique to either of two arrays?
> 
> For example, array1=[1,2,3],array2=[1,4,7]
> the return array is [2,3,4,7]
> 
> Thanks,
> 
> Li

It's probably academic, but what is the desired result with these 2 
arrays?
array1 = [1,2,2,3]
array2 = [1,4,7,7]

Nathan Powell's method: [2, 2, 3, 4, 7, 7]
Rob Biedenharn's method: [2, 3, 4, 7]
Perhaps desired result: [3,4] ?

Regards,

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