SwiftString icon indicating copy to clipboard operation
SwiftString copied to clipboard

subscript

Open TimurKhay opened this issue 8 years ago • 1 comments

2016-06-11 9 51 58

does SwiftString's subscript work this way intentionally?

TimurKhay avatar Jun 11 '16 06:06 TimurKhay

Would expect it to grab chars 4 through 8 in the below case. currently: "abcdefgh"[4..<8] -> "" // blank string expected example: "abcdefgh"[4..<8] -> "efgh"

Pull request: https://github.com/amayne/SwiftString/pull/22

MaximusMcCann avatar Jul 14 '16 17:07 MaximusMcCann