amayne / SwiftString

A comprehensive, lightweight string extension for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subscript

TimurKhay opened this issue · comments

2016-06-11 9 51 58

does SwiftString's subscript work this way intentionally?

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: #22