, range[subscript], , . , , , :
class Range {
var _startIndex
var _endIndex
}
Now I'm not sure if there can be ranges without a number. If not, then the index is indeed a value. So basically 10..20means that the range starts at 10 and ends at 20. I assume for the for loop
for i in 10..20 {}
coincides with
for i = _startIndex; i < _endIndex; i++
So, perhaps the range does not support the index, and this is just some inherited index from some base class.
Again, no solid evidence, and I really don't find the doc for Range in any link. I also think that it would be nice to maintain the index, but only my 2c.
source
share