Sebastian Hungerecker wrote the following on 26.11.2007 18:27 : > Lionel Bouton wrote: > >> arr.reject {|a| arr.any? {|b| b != a and a.index(b) } } >> > > I'd make that index into include? because you don't really care about the > index here. > I agree, the code is then easier to read too. Lionel