[swift-users] See documentation comment for discussion

Maury Markowitz maury.markowitz at gmail.com
Mon Jun 20 08:24:52 CDT 2016


On Jun 19, 2016, at 10:45 PM, Marco S Hyman <marc at snafu.org> wrote:
> As for your subscript... in the code "mystring[0...1]” [0...1] is not a Range<Int>, it is a CountableClosedRange<Int>.

But that doesn't explain why it works fine under Swift 2.2, which is the basis of the question.

The change does not appear to be to string itself, but to either 'subscript' or perhaps the method signatures so Range no longer accepts closed ranges?



More information about the swift-users mailing list