Ok
I saw them before asking ans the use of species was good expect that I missed collectAsSet ;) Now I see it Stef
On 23 nov. 07, at 15:41, Adrian Kuhn wrote:
Please have a look at
CodeFooDevelopment >> CodeFoo >> Collection >> enumerating
There is
#collectUnion: #flattern #gather: #recurisveCollect:
that all use a collection of the same species as the receiver, and
#collectAsSet: #transitiveClosure:
that use a Set for any collection. If your need is not covered by that, please feel free to add your own enumerators there.
cheers, AA
On 23 Nov 2007, at 9:00 , Stéphane Ducasse wrote:
#collectAsSet: just returns the set of the collect, while Stef would want a #collectUnionAsSet: . But, if you do the UniqueOrderedCollection :), it should work, no?
I want that flatcollect is by construction creating a unique result of the collect and not flattening it after the fact.
Stef
Doru
On Nov 22, 2007, at 10:42 PM, Adrian Kuhn wrote:
There is #collectAsSet:
Is that what you ar looking for?
AA
On 22 Nov 2007, at 21:32 , Stéphane Ducasse wrote:
Something related I would like to have a flatCollect with which I do not have to do asSet at the end. So a kind of flatUniqueCollect that still return an UniqueOrderedCollection instead of a set
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Problem solving efficiency grows with the abstractness level of problem understanding."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev