From: newto ruby Date: 2012-04-20T06:53:25+09:00 Subject: finding duplicates in an array and its index number Hi, I have following array and I am trying to find if there are duplicates in the array. I also want to find out their index. e.g. a=[1,2,3,1,3] Here 1 is a duplicate which comes twice and its index is 0 and 3 in the array. Any suggestions? Thanks -- Posted via http://www.ruby-forum.com/.