<div dir="ltr"><div class="gmail_extra">Perhaps another word that could fit in the first case (truncate/bounded/within/clamping) is `flat`. Along the same lines of the `flatMap` which returns only non-nil values, here we have an empty array instead of nil when the range doesn&#39;t apply at all.</div><div class="gmail_extra"><br></div><div class="gmail_extra">let array = [1,2,3]</div><div class="gmail_extra"><br></div><div class="gmail_extra">array[flat: 0..&lt;10] // [1,2,3]</div><div class="gmail_extra">array[checking: 0..&lt;10] // nil</div><div class="gmail_extra"><br></div><div class="gmail_extra">I&#39;m still not sure if `clamping` is the right word. What do you think?</div><div class="gmail_extra"><br></div><div class="gmail_extra">- Luis<br>
<br><div class="gmail_quote">On Thu, May 12, 2016 at 7:25 AM, Brent Royal-Gordon <span dir="ltr">&lt;<a href="mailto:brent@architechies.com" target="_blank">brent@architechies.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>&gt; It sounds good, thanks for you suggestions @Vladimir, @Patrick and @Brent.<br>
&gt;<br>
&gt; I&#39;ve just updated the proposal:<br>
&gt; <a href="https://github.com/luish/swift-evolution/blob/more-lenient-subscripts/proposals/nnnn-more-lenient-collections-subscripts.md#detailed-design" rel="noreferrer" target="_blank">https://github.com/luish/swift-evolution/blob/more-lenient-subscripts/proposals/nnnn-more-lenient-collections-subscripts.md#detailed-design</a><br>
&gt;<br>
&gt; - Luis<br>
<br>
</span>Hmm. If you&#39;re going with `checking` for one of them, perhaps the other should be `clamping` (for the analogous method on `Range`, which you might want to use in the implementation of that subscript). That would create a nicely matched pair:<br>
<br>
        array[checking: 0..&lt;10]<br>
        array[clamping: 0..&lt;10]<br>
<span><font color="#888888"><br>
--<br>
Brent Royal-Gordon<br>
Architechies<br>
<br>
</font></span></blockquote></div><br></div></div>