Looks like we haven't that one. So, how does one get an ordered collection without duplicates from an orderered collection ? Phil
I use: aCollection asSet asOrderedCollection â But maybe there's something better.
OrderedCollection>>removeDuplicates? Peter Kenny From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of phil@highoctane.be Sent: 05 May 2015 17:07 To: Any question about pharo is welcome Subject: [Pharo-users] asOrderedSet Looks like we haven't that one. So, how does one get an ordered collection without duplicates from an orderered collection ? Phil
Thx. Found that one but it does a removal on the collection itself and copies over and over. I am searching for asOrderedCollectionWithoutDuplicates that leaves the original collection alone. Phil On Tue, May 5, 2015 at 6:34 PM, PBKResearch <peter@pbkresearch.co.uk> wrote:
OrderedCollection>>removeDuplicates?
Peter Kenny
*From:* Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] *On Behalf Of *phil@highoctane.be *Sent:* 05 May 2015 17:07 *To:* Any question about pharo is welcome *Subject:* [Pharo-users] asOrderedSet
Looks like we haven't that one.
So, how does one get an ordered collection without duplicates from an orderered collection ?
Phil
--
Am 05.05.2015 um 19:28 schrieb phil@highoctane.be:
Thx.
Found that one but it does a removal on the collection itself and copies over and over.
I am searching for asOrderedCollectionWithoutDuplicates that leaves the original collection alone.
anOrderedCollection copy removeDuplicates? :) Norbert
Phil
On Tue, May 5, 2015 at 6:34 PM, PBKResearch <peter@pbkresearch.co.uk <mailto:peter@pbkresearch.co.uk>> wrote: OrderedCollection>>removeDuplicates?
Peter Kenny
From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org <mailto:pharo-users-bounces@lists.pharo.org>] On Behalf Of phil@highoctane.be <mailto:phil@highoctane.be> Sent: 05 May 2015 17:07 To: Any question about pharo is welcome Subject: [Pharo-users] asOrderedSet
Looks like we haven't that one.
So, how does one get an ordered collection without duplicates from an orderered collection ?
Phil
--
participants (4)
-
Norbert Hartl -
PBKResearch -
phil@highoctane.be -
Sergio Fedi