Re: how to delete duplicate items in the same list
- To: mathgroup at smc.vnet.net
- Subject: [mg45598] Re: how to delete duplicate items in the same list
- From: drbob at bigfoot.com (Bobby R. Treat)
- Date: Fri, 16 Jan 2004 06:05:14 -0500 (EST)
- References: <bto1uf$2ka$1@smc.vnet.net> <bu0cjl$ah9$1@smc.vnet.net> <bu2oot$jhq$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Look up Union in help and you'll see that its main purpose is to form the set-theoretic union of two lists. The result is a set with no duplicate elements, so it's a simple way to get the result that was needed in this case. Bobby AES/newspost <siegman at stanford.edu> wrote in message news:<bu2oot$jhq$1 at smc.vnet.net>... > > > I can't find a way to make sure all items in the same list are unique. Can > > > anybody help me out? Thanks a lot! > > > Union[a]==a > > > Can anyone explain why "Union" means what it does? -- or at least a > mental crutch to help me remember that Union is the command that does > this? > > (Doesn't seem an obvious name for the function involved, though I > suppose I could try to think "Unique" ---> "Union")