Re: Return different values of a list
- To: mathgroup at smc.vnet.net
- Subject: [mg49433] Re: Return different values of a list
- From: "David W. Cantrell" <DWCantrell at sigmaxi.org>
- Date: Tue, 20 Jul 2004 07:53:23 -0400 (EDT)
- Organization: NewsReader.Com Subscriber
- References: <cdgctu$937$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Dr. Wolfgang Hintze" <weh at snafu.de> wrote: > Given a list containing repeating values like e.g. > > x={a,b,c,a,c} > > I would like to produce a list containing each element just once > i.e. > > y={a,b,c} > > What is the easiest way to accomplish this? In[1]:= Union[{a,b,c,a,c}] Out[1]= {a,b,c} David Cantrell