MathGroup Archive 2004

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

Search the Archive

Re: Re: how to delete duplicate items in the same list


Union applied to a single list essentially "converts" the list to a 
set, thus removing duplicate elements?

-----
Selwyn Hollis
http://www.math.armstrong.edu/faculty/hollis
(edit reply-to to reply)

On Jan 14, 2004, at 1:26 AM, AES/newspost 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!
>
>> 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")
>


  • Prev by Date: Re: Wolfram Functions Site
  • Next by Date: Mathematica for Macintosh questions.
  • Previous by thread: Re: how to delete duplicate items in the same list
  • Next by thread: Re: Re: how to delete duplicate items in the same list