Sam Larbi wrote: > I've got an array of strings, say like: > > ["Bob", "John", "Bobby", "John"] > > I want to remove duplicates and elements that are substrings of other > elements. Therefore, the above array would become: > > ["John","Bobby"] > ["Bob", "John", "Bobby", "John"].uniq! (or uniq ) -- Posted via http://www.ruby-forum.com/.