MathGroup Archive 2003

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

Search the Archive

Re: DeleteCases

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42250] Re: [mg42224] DeleteCases
  • From: Bobby Treat <drmajorbob-MathGroup3528 at mailblocks.com>
  • Date: Wed, 25 Jun 2003 01:53:45 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Use Complement.

Bobby

-----Original Message-----
From: Shawn Kelly <kellysm at ornl.gov>
To: mathgroup at smc.vnet.net
Subject: [mg42250] [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 


  • Prev by Date: Re: DeleteCases
  • Next by Date: RE: DeleteCases
  • Previous by thread: Re: DeleteCases
  • Next by thread: RE: DeleteCases