Re: How to delete duplicates in a list?
Re: How to delete duplicates in a list?
- Subject: Re: How to delete duplicates in a list?
- From: Emmanuel <email@hidden>
- Date: Wed, 29 Aug 2001 21:50:44 +0200
At 19:14 +0200 29/08/01, marty brandt wrote:
>
>
I am trying to delete duplicates in a list.
>
Can anyone help?
If running speed is an issue, you could customize a "sort" routine to have
it suppress duplicates.
If running speed is an issue *and* you are not specially seeking some
occasion to make some delicate programming, you could use a standard "sort"
routine, then read once again the sorted list to suppress duplicates.
This will be just a bit slower than linear - except that the speed of "get
item i of theList" also depends on the size of the list ...
Emmanuel