From: Robert Klemme Date: 2007-10-14T03:05:01+09:00 Subject: Re: Finding shared elements between to arrays. On 12.10.2007 23:44, Sebastian probst Eide wrote: >> 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! In that case you should probably use Set anyway as typical set operations are more efficient with Set. It is just the right data type to model a set, which seems what you are trying to do. Kind regards robert