Strings In Depth16 / 18
Up next

String indices

let s = "abc"
// String is not indexed by Int; use String.Index
let first = s[s.startIndex]
let second = s[s.index(after: s.startIndex)]
print(first, second)
What you're solving

startIndex and index(after:)