Unique by id

Guyz, tell me one thing that if i have an array of object of type ABC.. then how to find the objects from that array which are uniq in id.. I mean unique by ABC.id..

May be a newbie question..

Guyz, tell me one thing that if i have an array of object of type ABC.. then how to find the objects from that array which are uniq in id.. I mean unique by ABC.id..

If you have two with the same id how do you know which one you want?

If you just mean that you want to strip out duplicate entries then look at then just use abc.uniq (Have a look at the docs for the Array class).

Colin

Colin Law wrote: