MathGroup Archive 2003

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

Search the Archive

RE: DeleteCases

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42231] RE: [mg42224] DeleteCases
  • From: "Florian Jaccard" <jaccardf at eicn.ch>
  • Date: Wed, 25 Jun 2003 01:53:26 -0400 (EDT)
  • In-reply-to: <200306240527.BAA22169@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use

Complement[list1, list2]



Meilleures salutations

Florian Jaccard


-----Message d'origine-----
De : Shawn Kelly [mailto:kellysm at ornl.gov]
Envoyé : mar., 24. juin 2003 07:27
À : mathgroup at smc.vnet.net
Objet : [mg42224] DeleteCases


I have twos lists I want to compare with one another and delete the cases
where the elements in list1 match list2.  For example:

list1={21,41,61,71,81}
list2={71,73,75,77,79,81}

I want the new list3 to read:
list3={21,41,61}

It seems to me that the following should work:
list3=DeleteCases[list1,list2]

Any thoughts?

Thanks

Shawn




  • References:
  • Prev by Date: ListSurfacePlot3D options and Surface Integration suggestions
  • Next by Date: Re: DeleteCases
  • Previous by thread: Re: DeleteCases
  • Next by thread: Re: DeleteCases