From: Bulat Ziganshin Date: 2002-09-26T14:33:42+09:00 Subject: Re: Set Union on Array of Objects Hello William, Thursday, September 26, 2002, 7:04:12 AM, you wrote: >> Why do array subtraction and array union not behave in the same manner >> when operating on an array of user-defined objects? Specifically, how >> can I get the Array union operator to use the user-defined "==" method >> of the objects, as the Array subtraction operator does? What is the best >> way to get what I expect? such methods can try to use 1) hash() and sort_by 2) <=> and sort 3) = in O(n*n) algorithm -- Best regards, Bulat mailto:bulatz@integ.ru