[swift-corelibs-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-02 Thread Cao, Jiannan via swift-corelibs-dev
Hi everyone, I'd like to discuss the relation between RangeReplaceableCollection and MutableCollection MutableCollection is a Collection type that can { set } any element with subscript(position: Index). (and also { set } for subscript(range: Range)) RangeReplaceableCollection requires a func

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

2017-12-02 Thread Cao, Jiannan via swift-corelibs-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