Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg49433] Re: Return different values of a list
  • From: "David W. Cantrell" <DWCantrell at>
  • Date: Tue, 20 Jul 2004 07:53:23 -0400 (EDT)
  • Organization: NewsReader.Com Subscriber
  • References: <cdgctu$937$>
  • Sender: owner-wri-mathgroup at

"Dr. Wolfgang Hintze" <weh at> 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?