Created
February 12, 2017 23:05
-
-
Save rayfix/2ae458c5463652c74c662e4828a31bc6 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
let str = "Hello, Keita" | |
var index = str.characters.startIndex | |
while index < str.characters.endIndex { | |
print(str.characters[index]) | |
str.characters.formIndex(after: &index) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment