Last active
December 7, 2016 04:17
-
-
Save xlc/25204693a064f32d2c98ae9ec7a9152a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func someCondition(_: Int) -> Bool { | |
return true | |
} | |
func foo() { | |
func loop(_ index: Int) { | |
if (index < 100) { | |
if someCondition(index) { | |
return loop(index + 3) | |
} else { | |
// body | |
return loop(index + 1) | |
} | |
} | |
} | |
loop(0) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment