Skip to content

Instantly share code, notes, and snippets.

@scotteg
Created March 22, 2016 00:23
Show Gist options
  • Save scotteg/ef431ab2916132a53a58 to your computer and use it in GitHub Desktop.
Save scotteg/ef431ab2916132a53a58 to your computer and use it in GitHub Desktop.
Using Labels, from Swift 2 Essential Training ://www.lynda.com/Swift-tutorials/Using-labels/422096/447960-4.html
// From Swift 2 Essential Training http://www.lynda.com/Swift-tutorials/Using-labels/422096/447960-4.html
var i = 0
let hello = "Hello, playground!"
start: do {
i++
do {
print(hello)
if i < 3 {
continue start
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment