let subString = self[Range(start: start++, end: endIndex)]
if subString.hasPrefix(other){
return true
}
i have this code in swift 2.3, i used this code as an extension for string value, xcode converted it as follow
let subString = self[((start++) ..< endIndex)]
and start giving me error
Unary operator '++' cannot be applied to an operand of type '@lvalue String.Index' (aka '@lvalue String.CharacterView.Index')
i don't know now how exactly Xcode want me to write it?