let s = "swift" // step an index forward by a count let i = s.index(s.startIndex, offsetBy: 2) print(s[i]) // slice from that index to the end print(s[i...])
index(_:offsetBy:)