<div dir="ltr">Hi Chris,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 30, 2018 at 3:57 PM,  <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Chris Muller uploaded a new version of Collections to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Collections-cmm.785.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>trunk/Collections-cmm.785.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-cmm.785<br>
Author: cmm<br>
Time: 30 March 2018, 5:57:37.727038 pm<br>
UUID: 37e9870a-5379-4185-8538-<wbr>fada710dad5d<br>
Ancestors: Collections-eem.784<br>
<br>
Add #at:ifPresent:ifAbsent: for API compatibility with other kinds of directly-accessible Collections.<br>
<br>
=============== Diff against Collections-eem.784 ===============<br>
<br>
Item was added:<br>
+ ----- Method: SequenceableCollection>>at:<wbr>ifPresent:ifAbsent: (in category 'accessing') -----<br>
+ at: index ifPresent: elementBlock ifAbsent: exceptionBlock<br>
+       "Answer the value of elementBlock on the element at position index.  If I do not contain an element at index, answer the result of evaluating exceptionBlock."<br>
+       ^ elementBlock value:<br>
+               (self<br>
+                       at: index<br>
+                       ifAbsent: [ ^ exceptionBlock value ])!<br></blockquote><div><br></div><div>I'm thinking that this sits better in Collection as a default implementation.  I note that also we don't have a subclass responsibility implementations of at:ifAbsent: (and maybe others) in Collection. </div></div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>