<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I frequently need something like that and I'd like to have it in Swift too.<br class=""><div class="">
<br class="Apple-interchange-newline"><span style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">Félix</span>
</div>

<br class=""><div><blockquote type="cite" class=""><div class="">Le 22 janv. 2016 à 13:22:45, Ben Langmuir via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Previous discussion here:<br class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001110.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001110.html</a><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 22, 2016, at 8:22 AM, Lee M via swift-evolution &lt;swift-evolution@swift.org&gt; wrote:<br class=""><br class="">This has likely been discussed already, but I haven't been able to find it anywhere.<br class="">Example:<br class=""><br class=""> &nbsp;&nbsp;&nbsp;let items: Int = []<br class=""><br class=""> &nbsp;&nbsp;&nbsp;for item in items {<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(item)<br class=""> &nbsp;&nbsp;&nbsp;}<br class=""> &nbsp;&nbsp;&nbsp;else {<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("No items")<br class=""> &nbsp;&nbsp;&nbsp;}<br class="">_______________________________________________<br class="">swift-evolution mailing list<br class="">swift-evolution@swift.org<br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></blockquote><br class="">_______________________________________________<br class="">swift-evolution mailing list<br class="">swift-evolution@swift.org<br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></div></blockquote></div><br class=""></body></html>