Mathematica 9 is now available
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: [mg76067] Re: Deleting duplicates from a list
  • From: Valeri Astanoff <astanoff at gmail.com>
  • Date: Tue, 15 May 2007 05:08:03 -0400 (EDT)
  • References: <f292sh$m3p$1@smc.vnet.net>

On 14 mai, 09:25, Raul Martinez <raulm... at mac.com> wrote:
> 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

In[1]:=First/@Split[{8,8,11,11,19}]
Out[1]={8,11,19}




  • Prev by Date: About Condition and HoldAll
  • Next by Date: Re: Converting Binary form to a desired array
  • Previous by thread: Re: Deleting duplicates from a list
  • Next by thread: Re: Deleting duplicates from a list