<div dir="ltr">On Sat, Jan 16, 2016 at 2:46 PM, Adriano Ferreira via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Isn’t the subscript supposed to return an optional as well?</div></div></blockquote><div><br></div><div>Not arrays. They stop your program when out of bounds.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Why unwrapping isn&#39;t required when `pivot` is used within the `filter` call?</div></div></blockquote><div><br></div><div>Type inference on the closure. $0 is made optional as part of the call.</div><div><br></div><div>-david</div><div> </div></div></div></div>