From: jogloran Date: 2006-04-13T23:21:18+09:00 Subject: Array#- ------=_Part_20346_22216392.1144938074782 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I need items to be compared based on their values, and not by object equality, so I provide #=3D=3D for the array elements. The problem is that = I've been trying to use Array#- as a set difference-like operation, and it doesn't seem to respect any kind of user-provided means of defining equality. A look into the Ruby source seems to indicate that it works by populating a hash with the elements of the second array, then appending to the result array if an element of the first array is in the hash. Does this mean that it is impossible to get the behaviour I want from Array#- as it i= s implemented? Regards, jogloran ------=_Part_20346_22216392.1144938074782--