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

2017-12-02 Thread Tony Parker via swift-corelibs-dev
Hi Jiannan, I think you’ll get a better answer to your question on the ‘swift-dev’ list, actually. Hope this helps, - Tony > On Dec 2, 2017, at 9:08 AM, Cao, Jiannan via swift-corelibs-dev > wrote: > > Hi everyone, > > I'd like to discuss the relation between RangeReplaceableCollection and

[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