Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

rule based program for "Deleting repeated members of a list."

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81917] rule based program for "Deleting repeated members of a list."
  • From: mumat <csarami at gmail.com>
  • Date: Sat, 6 Oct 2007 04:47:04 -0400 (EDT)

Hi,

I have a list s={a,b,c,c,d,e,e,f,g,g,g,h,a,b};

I need to write a program so that it reads the list and ignors
repeated elements; so it outputs the following:

RepeatRemover[s]={a,b,c,d,e,f,g,h,a,b};

I am looking for a rule-based program to do this!

Any help would be greatly appreciated.

C.S.



  • Prev by Date: Re: How to help Mathematica take an integral
  • Next by Date: How to remove an artifact from a plot
  • Previous by thread: Re: CellMargins Question
  • Next by thread: RE: rule based program for "Deleting repeated members of a list."