<div dir="ltr"><div>Hi Nicolas,</div><div dir="ltr"><br></div><div dir="ltr">Am Mi., 1. Jan. 2020 um 19:48 Uhr schrieb Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de">Christoph.Thiede@student.hpi.uni-potsdam.de</a>>:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div id="gmail-m_7987775080254016487divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr"><div id="gmail-m_7987775080254016487divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p></p>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<pre style="color:rgb(51,51,51)">i := 0.</pre>
</div>
<div style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<pre style="color:rgb(51,51,51)">((RunArray new: 4 withAll: 42) collect: [:x | i := i + 1]) asArray. "#(1 1 1 1)""</pre></div></blockquote></div></div></blockquote><div>This one is broken, isn't it? A RunArray is still a collection of elements and the 

comment of collect: in Collection states:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div>Evaluate aBlock <i>with each of the receiver's elements</i> as the argument.  </div></div><div class="gmail_quote"><div><i>        Collect the resulting values</i> into a collection like the receiver. Answer  </div></div><div class="gmail_quote"><div>       the new collection. [emphasis mine]</div></div></blockquote><div><br></div><div>IMO the storage optimization of RunArray should not affect the meaning of its operations. The intermediary RunArray in the code above should also contain 1, 2, 3, 4, even though it defeats the optimization.</div><div><br></div><div>Introduce a new selector for the optimized collect operation?</div><div><br></div><div>Kind regards,</div><div>Jakob</div></div>