Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift iterate through string

let string = "hello world"
for (index, char) in string.enumerated() {
	print("index = (index), character = (char)")
}
 
PREVIOUS NEXT
Tagged: #swift #iterate #string
ADD COMMENT
Topic
Name
9+6 =