<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Meslo LG M DZ';"><span style="font-family: Helvetica, Arial; font-size: 13px;">for loop is working</span></p><div><span style="font-family: Helvetica, Arial; font-size: 13px;"><br></span></div><p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Meslo LG M DZ';"><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2">for</span> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2">var</span> i = <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">0</span>; i &lt; <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">10</span>; i += <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8">2</span> {</p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Meslo LG M DZ'; color: rgb(209, 47, 27);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000">&nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81">print</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">(</span>"i is <span style="font-variant-ligatures: no-common-ligatures; color: #000000">\</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #000000">i</span>)"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">)</span></p>
<p style="margin: 0px; font-size: 12px; line-height: normal; font-family: 'Meslo LG M DZ';">}</p><div><br></div></div> <div><br> <div id="bloop_sign_1450166876146892032" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><span style="font-family: Helvetica, Arial;">On December 15, 2015 at 5:05:41 PM, cooper liu via swift-users (</span><a href="mailto:swift-users@swift.org" style="font-family: Helvetica, Arial;">swift-users@swift.org</a><span style="font-family: Helvetica, Arial;">) wrote:</span></div></div> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div>Hi,</div>
<div>If the c style for loop was removed,how to implement the
following code beautifully:</div>
<div>For(var i=0; i &lt; 10; i+=2)</div>
<div>Since the range operator ... doesn't support step other than
1, and it doesn't support end value &lt; start value.</div>
<div><br></div>
<div>Thanks!</div>
<div>
<div class="acompli_signature"><br></div>
<br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=9xi1sqmKsCg9jKqAWTVX7BM9IbeqCt5n-2Bct01Y2bp-2FRexUSd2DSiI0VaQbhYV4Lvbl16Hy1FcaAl7HyjIb-2FV6GiqJCQ7m7vYrlByAx6CUIijFPKMOByg5311uGucL9fMWtisSdkHYLoox4uhWb55G9VnXjdi0VBjlrQUap73MFtZ8-2BkozrGuoKdATOeJpU-2BjCO008DNbd2XUbH4isRW6NNvzxiTLiLYJR8N81H66Acg-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">


_______________________________________________<br>swift-users mailing list<br>swift-users@swift.org<br>https://lists.swift.org/mailman/listinfo/swift-users<br></div></div></span></blockquote></div></body></html>