Why is it that in Swift one has to work with String.Index
, instead of Int?
Like:
let myStr = "This is some string"
myStr[5...] // "is some string"
Why is it that in Swift one has to work with String.Index
, instead of Int?
Like:
let myStr = "This is some string"
myStr[5...] // "is some string"