MathGroup Archive 2004

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

Search the Archive

Re: how to delete duplicate items in the same list


On 1/13/04 at 4:03 AM, J.A.Solomon at city.ac.uk (Joshua A. Solomon) wrote:

> On 10/1/04 5:18 am, in article bto1uf$2ka$1 at smc.vnet.net, "Sabrina"
> <hxs61 at case.edu> wrote:

> > 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!

> a = {1, 2, 3}; b = {1, 2, 3, 3};
> Union[a]==a
> True
> Union[b]==b
> False

This fails since

c = Reverse@a;
Union@c==c
False
--
To reply via email subtract one hundred and four


  • Prev by Date: modifying style of notebook
  • Next by Date: Re: how to delete duplicate items in the same list
  • Previous by thread: Re: how to delete duplicate items in the same list
  • Next by thread: Re: how to delete duplicate items in the same list