Re: [swift-dev] Starter project: API to upgrade AnySequence to Any*Collection

2015-12-07 Thread Austin Zheng via swift-dev
I'd be interested in taking it but I have another ticket already, so if someone else wants it they should take it. Austin On Mon, Dec 7, 2015 at 2:35 PM, Dmitri Gribenko wrote: > On Mon, Dec 7, 2015 at 2:27 PM, Jacob Bandes-Storch > wrote: > > What do you mean by "without copying the underlyin

Re: [swift-dev] Starter project: API to upgrade AnySequence to Any*Collection

2015-12-07 Thread Jacob Bandes-Storch via swift-dev
What do you mean by "without copying the underlying collection"? Is this specifically for the case where the AnySequence is wrapping a collection (which is not always the case)? On Mon, Dec 7, 2015 at 2:18 PM, Dmitri Gribenko via swift-dev < swift-dev@swift.org> wrote: > It would require a propos

Re: [swift-dev] Starter project: API to upgrade AnySequence to Any*Collection

2015-12-07 Thread Dmitri Gribenko via swift-dev
It would require a proposal and a review, but the implementation is more challenging here than the API design. The proposal would be trivial, just one extra API, if I'm imagining this correctly. Dmitri On Mon, Dec 7, 2015 at 2:10 PM, Austin Zheng wrote: > Would this require a review/proposal, s

Re: [swift-dev] Starter project: API to upgrade AnySequence to Any*Collection

2015-12-07 Thread Austin Zheng via swift-dev
Would this require a review/proposal, since it involves an API change? On Mon, Dec 7, 2015 at 2:08 PM, Dmitri Gribenko via swift-dev < swift-dev@swift.org> wrote: > Hi, > > If someone looks for a starter project in the standard library with > intermediate complexity (prior experience with Swift g

[swift-dev] Starter project: API to upgrade AnySequence to Any*Collection

2015-12-07 Thread Dmitri Gribenko via swift-dev
Hi, If someone looks for a starter project in the standard library with intermediate complexity (prior experience with Swift generics required), here's one. This is in the area of existential sequence and collection wrappers. Upgrading AnyForwardCollection to AnyRandomAccessCollection works: (s