From: matz@... (Yukihiro Matsumoto) Date: 2000-12-03T01:16:00+09:00 Subject: [ruby-talk:6744] Re: Array Intersect (&) question Hi, In message "[ruby-talk:6723] Re: Array Intersect (&) question" on 00/12/02, Mathieu Bouchard writes: | |> >Use a hash. Here's code to do both and more. It assumes that |> >each element is unique in a given array: Using a hash makes it pretty fast, but it does not preserve the original order. If no one requests order preservation, I will use hashes in &, |, and uniq. What's your opinion? matz.