MathGroup Archive 2007

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81934] RE: [mg81917] rule based program for "Deleting repeated members of a list."
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Sun, 7 Oct 2007 05:28:41 -0400 (EDT)
  • References: <200710060847.EAA25537@smc.vnet.net>

Mumat:

First[#] &  /@ Split[{a, b, c, c, d, e, e, f, g, g, g, h, a, b}]

{a, b, c, d, e, f, g, h, a, b}

            Best,

            Harvey

Harvey P. Dale

University Professor of Philanthropy and the Law

Director, National Center on Philanthropy and the Law

New York University School of Law

Room 206A

110 West 3rd Street

New York, N.Y. 10012-1074



-----Original Message-----
From: mumat [mailto:csarami at gmail.com]
Sent: Saturday, October 06, 2007 4:47 AM
To: mathgroup at smc.vnet.net
Subject: [mg81934] [mg81917] rule based program for "Deleting repeated members of
a list."



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: rule based program for "Deleting repeated members of a list."
  • Next by Date: Re: How to remove an artifact from a plot
  • Previous by thread: rule based program for "Deleting repeated members of a list."
  • Next by thread: Re: rule based program for "Deleting repeated members of a list."