Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Deleting duplicates from a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76025] Re: [mg75940] Deleting duplicates from a list
  • From: "Patrick Scheibe" <mai99dnn at studserv.uni-leipzig.de>
  • Date: Tue, 15 May 2007 04:46:26 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <200705140725.DAA22641@smc.vnet.net>

Hi,

if you don't care about the order in your list, then you can use

Union[{8, 8, 11, 11, 19}]

and you will get an ordered List where all dublicates are removed.


Cheers
Patrick

Am 14.05.2007, 09:25 Uhr, schrieb Raul Martinez <raulmart at mac.com>:

> Hi all,
>
> I have a list, e.g., {8, 8, 11, 11, 19}. I want to eliminate all
> duplicates so the list becomes {8, 11, 19}. Can anyone suggest a
> command that will do this?
>
> TIA,
>
> Raul Martinez



-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/


  • Prev by Date: Re: Units package in v6
  • Next by Date: Re: Compatibility woes
  • Previous by thread: Re: Re: Deleting duplicates from a list
  • Next by thread: Re: Deleting duplicates from a list