3 ms·
Obviously you haven't seen the Substring [1] type of Swift. [1] https://developer.apple.com/documentation/swift/substring https://developer.apple.com/documenta
by selcuka 4y ago
Obviously you haven't seen the Substring [1] type of Swift.
[1] https://developer.apple.com/documentation/swift/substring https://developer.apple.com/documentation/swift/substring
- gabereiser 4y agoBut this is a slice. So technically a []char?
- selcuka 4y agoNot really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.