Re: remove redundency in list of pairs
- From: "Leon" <no@xxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 16:22:16 +0200
Hi,
> I want to construct a list of pairs without dupliactes, not the key
> value pairs, I just want to ensure that the pair (not ordered) is not
> dupliacted in the list.
>
> for example
>
> method input: (3, 4), (5, 6), (4, 3), (6, 5)
>
> method output: (3, 4), (5, 6).
Define your own pair-class, including an equals-method (and hash-method). Then
declare a (Hash)Set.
Greetings, Leon.
.
- References:
- remove redundency in list of pairs
- From: bluedoze
- remove redundency in list of pairs
- Prev by Date: Re: saving an output file
- Next by Date: Re: File chooser question
- Previous by thread: remove redundency in list of pairs
- Next by thread: saving an output file
- Index(es):
Relevant Pages
|