Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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


  • Prev by Date: Null??
  • Next by Date: 3D graphs with constraints
  • Previous by thread: Re: Return different values of a list
  • Next by thread: Why aboluteoptions doesn't work here?