<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Hmm... #timesCollect: seems strange. Especially since #timesRepeat: does not provide the iteration number to the block. Then, #to:collect: has a similar problem: "from x to y collect what?" The explicit from "(x to: y)" for the interval object seems more readable.<div><br></div><div>-1  ;-)</div><div><br></div><div><span style="font-size: 10pt">Best,</span></div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 06.09.2019 13:16:54 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style="font-family:Arial,Helvetica,sans-serif">A new version of Kernel was added to project The Inbox:<br>http://source.squeak.org/inbox/Kernel-ct.1266.mcz<br><br>==================== Summary ====================<br><br>Name: Kernel-ct.1266<br>Author: ct<br>Time: 6 September 2019, 1:16:39.325698 pm<br>UUID: a5b0464f-61cf-4749-9ad3-92e7d8c85341<br>Ancestors: Kernel-eem.1265<br><br>Add shorthands for interval collecting<br><br>There are enough senders of #timesRepeat: that manually fill a collection, same goes for #to:do:<br><br>=============== Diff against Kernel-eem.1265 ===============<br><br>Item was added:<br>+ ----- Method: Integer>>timesCollect: (in category 'enumerating') -----<br>+ timesCollect: aBlock <br>+ <br>+   ^ (1 to: self) collect: [:i | aBlock value]!<br><br>Item was added:<br>+ ----- Method: Number>>to:collect: (in category 'intervals') -----<br>+ to: stop collect: aBlock <br>+      "Evaluate aBlock for each element of the interval (self to: stop by: 1) and return the results."<br>+ <br>+       ^ (self to: stop) collect: aBlock!<br><br><br></div></blockquote>
                                        </div></body>