let start = playground.startIndex
let end = playground.index(start, offsetBy:4) (error:value of type string has no member index)
let fifthCharacter = playground[end]
How to find the nth letter of a string in swift programming?
- Posted:
- 3+ months ago by Shauna Va...
- Topics:
- playground, string, swift, letter, error, ends, type, members, programming
Details:
Answers
No answers have yet been posted. Add your answer to this question.