<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>First,<br></div><div><br></div><div>thank you for the 'gather' tip. It appears to work just fine.<br></div><div><br></div><div>Next pharo-ism is something named 'groupedBy:'<br></div><div style="" data-zbluepencil-ignore="true" class="zmail_extra"><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div><div>Collection >> groupedBy: aBlock<br></div><div>"Answer a dictionary whose keys are the result of evaluating aBlock for all my elements, and the value for each key is the selection of my elements that evaluated to that key. Uses species.<br></div><div><br></div><div>Example of use:<br></div><div>(#(1 2 3 4 5) groupedBy: [ :v | v odd ]) asString >>> 'an OrderedDictionary(true->#(1 3 5) false->#(2 4))'<br></div><div>"<br></div></div></blockquote><div style="" data-zbluepencil-ignore="true" class="zmail_extra"><br><br>This looks like 'select:' to me.<br><br><br>any objections/insight much appreciated.<br><br>thx</div><div><br></div></div><br></body></html>