MathGroup Archive 2007

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

Search the Archive

Re: Deleting duplicates from a list


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