From: Sebastian Hungerecker Date: 2007-11-27T02:27:14+09:00 Subject: Re: Removing duplicates and substrings from an array 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. -- Jabber: sepp2k@jabber.org ICQ: 205544826