• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to delete duplicates in a list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Ok, what do you think of PERL
  • Next by Date: Re: Working with creator codes in OS X
  • Previous by thread: Re: How to delete duplicates in a list?
  • Next by thread: Ok, what do you think of PERL
  • Index(es):
    • Date
    • Thread