From: Sebastian probst Eide Date: 2007-10-13T06:44:52+09:00 Subject: Re: Finding shared elements between to arrays. > I realize now that the OPs request for "an array which has the > elements shared by two other arrays" is a little ambiguous as to > duplications. > Note that the OPs solutions and the solutions using select produce the > same different results if you reverse the two arrays. Well, I never really thought about the possibility of duplicates. In my case the arrays wouldn't contain any dupes, but I wouldn't want my resulting array to have any anyway! S -- Posted via http://www.ruby-forum.com/.