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: Michelle Steiner <email@hidden>
- Date: Wed, 29 Aug 2001 12:45:07 -0700
On 8/29/01 7:14 PM, marty brandt <email@hidden> wrote:
>
I am trying to delete duplicates in a list.
>
Can anyone help?
set testlist to {1, 3, 2, 6, "A", 1, 7, "B", 3, 8, "A", "d", 4}
set finallist to {}
repeat with testitem in testlist
if testitem is not in finallist then set finallist to finallist &
testitem
end repeat
set testlist to finallist
{1, 3, 2, 6, "A", 7, "B", 8, "d", 4}
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------