Skip to content

Instantly share code, notes, and snippets.

@nolili
Created July 23, 2014 04:44
Show Gist options
  • Select an option

  • Save nolili/b5198082a7d2f2d86dd0 to your computer and use it in GitHub Desktop.

Select an option

Save nolili/b5198082a7d2f2d86dd0 to your computer and use it in GitHub Desktop.
Swift Stride
for i in stride(from: 0, to: 100, by: 25){
// 0, 25, 50, 75
println(i)
}
for i in stride(from: 0, through: 100, by: 25){
// 0, 25, 50, 75, 100
println(i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment