Skip to content

Instantly share code, notes, and snippets.

@masters3d
Created April 2, 2016 15:57
Show Gist options
  • Save masters3d/9b664ccfcc75df09e4f9bc859ad31934 to your computer and use it in GitHub Desktop.
Save masters3d/9b664ccfcc75df09e4f9bc859ad31934 to your computer and use it in GitHub Desktop.
let hey = [1,2,23,3,4,5,5,6,6,7,7,8]
let slice = hey[4...10]
for each in slice.indices{
print(slice[each])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment