Quick question: Iterate through a collection - no duplicates

Hi, is there a simple way to iterate through collection and not include
duplicates?

Thanks in advance.

Jordan

On 7/4/06, Jordan I. [email protected] wrote:

Hi, is there a simple way to iterate through collection and not include
duplicates?

@my_collection.uniq.each do |thing|
stuff
end

Thanks in advance.