for loop is working
for var i = 0; i < 10; i += 2 {
print("i is \(i)")
}
On December 15, 2015 at 5:05:41 PM, cooper liu via swift-users
([email protected]) wrote:
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!
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users