[squeak-dev] The Inbox: Collections-nice.869.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Jan 1 18:48:05 UTC 2020
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 at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Mittwoch, 1. Januar 2020 19:52 Uhr
An: squeak-dev at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200101/e2070628/attachment.html>
More information about the Squeak-dev
mailing list
|