<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div>Am 16.02.2016 um 05:52 schrieb Paul Ossenbruggen via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>>:<br><br></div><blockquote type="cite"><div class="">Currently it is possible to do this: </div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">a ?? doSomething(59)</div></blockquote><div class=""><br class=""></div><div class="">it is not a huge stretch to allow the result of the left hand optional expression on the right hand side:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span> a ?? doSomething($$)</div></blockquote><br><div>Actually it *is* a huge stretch because it is just the opposite!</div><div>The second version is just `map` written with an operator where the rhs is only called for the case that a value is present, i.e. non-nil.</div><div>The first version covers the opposite case where the value is absent, i.e. is nil. </div><div><br></div><div>-Thorsten </div></body></html>