[swift-users] For loop question?
cooper liu
1989lzhh at gmail.com
Tue Dec 15 02:05:32 CST 2015
Hi,If the c style for loop was removed,how to implement the following code beautifully:For(var i=0; i < 10; i+=2)Since the range operator ... doesn't support step other than 1, and it doesn't support end value < start value.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151215/6cf292db/attachment.html>
More information about the swift-users
mailing list