<div dir="ltr">I don't see why the elements of the receiver must be collections. The result of the block must be a collection. Do the results differ between the following two expressions?<div><br></div><div>    aCollection collectAll: [:each | ...].</div><div>    (aCollection gather: [:each | ...]) asSet.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 15. Aug. 2019 um 00:57 Uhr schrieb <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-ct.850.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-ct.850.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-ct.850<br>
Author: ct<br>
Time: 15 August 2019, 12:57:02.047584 am<br>
UUID: a8581084-5210-3747-8b96-791b0458f52f<br>
Ancestors: Collections-fn.847<br>
<br>
Add #collectAll:, which performs a collector on each simply nested element<br>
<br>
=============== Diff against Collections-fn.847 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Collection>>collectAll: (in category 'enumerating') -----<br>
+ collectAll: aBlock<br>
+       "Loop over all elements of the receiver which must be collections<br>
+       and for each simply nested element, evaluate aBlock. Collect the<br>
+       resulting values into a set. Return the set."<br>
+ <br>
+       | result |<br>
+       result := Set new.<br>
+       self<br>
+               collect: aBlock<br>
+               thenDo: [:collection | result addAll: collection].<br>
+       ^ result!<br>
<br>
<br>
</blockquote></div>