Re: [swift-dev] [Issue] Collection.distance() works not very well in some situations

2017-12-04 Thread Brent Royal-Gordon via swift-dev
> On Dec 2, 2017, at 12:28 PM, Cao, Jiannan via swift-dev > wrote: > > The question is that, whether the original Collection Protocol requires index > from lower to higher (startIndex < endIndex). `Collection` does require that `startIndex <= endIndex`, and in general, that `i < c.index(afte

[swift-dev] [Issue] Collection.distance() works not very well in some situations

2017-12-02 Thread Cao, Jiannan via swift-dev
[Issue] Collection.distance() works not very well in some situations The question is that, whether the original Collection Protocol requires index from lower to higher (startIndex < endIndex). If the original Collection Protocol requires index from lower to higher, than this infinity loop should