Oops, Nabble rejected all my <raw>code</code> examples, sorry.


Was:

i := 0.
((RunArray new: 4 withAll: 42) collect: [:x | i := i + 1]) asArray. "#(1 1 1 1)""
vs.
i := 0.
(RunArray new: 4 withAll: 42) collect: [:x | i := i + 1] as: Array. "#(1 2 3 4)"


Best,
Christoph


Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Mittwoch, 1. Januar 2020 19:52 Uhr
An: squeak-dev@lists.squeakfoundation.org
Betreff: Re: [squeak-dev] The Inbox: Collections-nice.869.mcz
 
Great, thanks for the enhancement!

Now we have got:


vs.


Would be great to align this. Is it necessary for RunArray >> do: to call
aBlock once per index?

Best,
Christoph



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html