From: Brad Tilley Date: 2006-10-28T04:12:09+09:00 Subject: Re: how to get only the duplicatet items from an array Nico Landgraf wrote: > thanks, yes sir, > thats really what i'm looking for. > could you please post your fast way. Use Set: irb(main):006:0> a = [1,1,2,2,3,3,4,4] => [1, 1, 2, 2, 3, 3, 4, 4] irb(main):007:0> Set.new(a) => # I don't know if it's faster, but it look better IMO. -- Posted via http://www.ruby-forum.com/.