checking duplicates

From: Silverfox (underground_miller_at_hotmail.com)
Date: 12/30/03


To: beginners@perl.org
Date: Tue, 30 Dec 2003 14:14:54 -0500

Hi all, i'm trying to figure out how I can check for duplicates entries in
an array and remove the duplicate.

Example:
23,23,39,40,44,44
should result in:
23,39,40,44

I'm reading from a file and assigning it to an array.

Silver Fox



Relevant Pages

  • Re: Assignment to slice
    ... > I do not understand why python behaves the way it does ... Python doesn't like that I'm assigning ... > Why does assigning to a slice of non-existent array ... at least the first index in the slice should be ...
    (comp.lang.python)
  • Re: non repeating random numbers
    ... numeric array, all of its elements are set to zero. ... However, as I said in the beginning, this method of assigning ... (making it an efficient method to use). ...
    (microsoft.public.vb.general.discussion)
  • Assignment to slice
    ... Python doesn't like that I'm assigning ... Why does assigning to a slice of non-existent array ... in which I tried to assign out-of-range, ...
    (comp.lang.python)
  • Re: never heard anything like it in my life?
    ... other progarmmers) talk about assigning "to an array", ... talk about assigning to a member of an array using the same terminology. ... But again, that is not assigning to an array, it is assigning to a pointer, ...
    (comp.lang.cpp)
  • Re: Array Functions
    ... >>range to an array of objects because you or I think it doesn't make ... > that InputRange also contains object references. ... only values that are acceptable to an array of the type that InputArray ... permitting the assigning of ranges to Object type arrays would be worth it. ...
    (microsoft.public.excel.worksheet.functions)