RE: DeleteCases
- To: mathgroup at smc.vnet.net
- Subject: [mg42241] RE: [mg42224] DeleteCases
- From: "SEPULVEDA,ARIEL (HP-PuertoRico,ex1)" <ariel.sepulveda at hp.com>
- Date: Wed, 25 Jun 2003 01:53:36 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Complement[list1, list2] looks better. -----Original Message----- From: Shawn Kelly [mailto:kellysm at ornl.gov] To: mathgroup at smc.vnet.net Subject: [mg42241] [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