Loops/For with a specified step: Difference between revisions

Content deleted Content added
Line 1,068:
=={{header|Swift}}==
This prints all odd digits:
<lang swift>for i in stride(from: 1..<, to: 10)., by(: 2) {
println(i)
}</lang>