[Seaside-dev] GROrderedMultiMap >> #keysDo:

Lukas Renggli renggli at gmail.com
Fri Jul 8 05:14:02 UTC 2011


Probably depends on what you want to do. Given that #keysDo: and
#valuesDo: is typically implemented in terms of #keysAndValuesDo: it
kind of makes sense.

Now I don't know if we depend on the current implementation of
#keysDo: somewhere? Why not just use "keys asSet"?

Lukas

On 7 July 2011 21:01, Philippe Marschall <philippe.marschall at gmail.com> wrote:
> Hi
>
> I have run into an "issue" with GROrderedMultiMap and iteration. The
> block passed to it is evaluated for every mapping.
>
> given an GROrderedMultiMap
>
> GROrderedMultiMap new
>  at: '1' add: 'first';
>  at: '2' add: 'second';
>  at: '1' add: 'third';
>  yourself
>
> #keysDo: will be evaluated with '1', '2' and '1' again. I didn't
> expect the last one. Is this the expected behavior?
>
>
> Cheers
> Philippe
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside-dev mailing list