[Tutor] List Dup-Elim Method?

Sean 'Shaleh' Perry shaleh@valinux.com
Fri, 02 Feb 2001 11:00:39 -0800 (PST)


On 02-Feb-2001 Curtis Larsen wrote:
> Is there an easy way to eliminate duplicate elements in a list?
> (A list method I missed, maybe?)
> 

or maybe you should use a hash?

hash[key] = 1

hash will only have one instance of the key and hash.keys() returns the list.