Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-25 Thread plx via swift-evolution
Some belated feedback. > On Feb 16, 2017, at 6:39 PM, Ben Cohen via swift-evolution > wrote: > Here is a list of commonly requested algorithms to operate on Sequence or > Collection: > > In-place transformations: > transform elements in a MutableCollection using a

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-22 Thread David Hart via swift-evolution
On 22 Feb 2017, at 12:19, Brent Royal-Gordon via swift-evolution wrote: >> On Feb 16, 2017, at 4:39 PM, Ben Cohen via swift-evolution >> wrote: >> >> Following up on Ted’s post regarding the opening up of stage 2, I’m starting >> a

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-22 Thread Brent Royal-Gordon via swift-evolution
> On Feb 16, 2017, at 4:39 PM, Ben Cohen via swift-evolution > wrote: > > Following up on Ted’s post regarding the opening up of stage 2, I’m starting > a thread to discuss additive algorithms for Sequence and Collection. This is not *exactly* on the same topic, but

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-20 Thread Ben Cohen via swift-evolution
> On Feb 20, 2017, at 7:38 AM, Ole Begemann wrote: > >> >> On 17 Feb 2017, at 01:39, Ben Cohen via swift-evolution >> > wrote: >> >> Hi swift-evolution, >> >> Following up on Ted’s post regarding the opening up of

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-20 Thread Ole Begemann via swift-evolution
> On 17 Feb 2017, at 01:39, Ben Cohen via swift-evolution > wrote: > > Hi swift-evolution, > > Following up on Ted’s post regarding the opening up of stage 2, I’m starting > a thread to discuss additive algorithms for Sequence and Collection. > > Here is a list of

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-17 Thread David Waite via swift-evolution
> On Feb 16, 2017, at 5:39 PM, Ben Cohen via swift-evolution > > wrote: > > Hi swift-evolution, > > Following up on Ted’s post regarding the opening up of stage 2, I’m starting > a thread to discuss additive algorithms for Sequence

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-17 Thread Philippe Hausler via swift-evolution
I definitely find the intent here to be an interesting view at performant collection operations; in Foundation we have exposed IndexSet to do this type of thing. When Foundation migrated to structural types it was really obvious to make IndexSet a structure - it was a logical change because it

Re: [swift-evolution] Sequence/Collection Enhancements

2017-02-16 Thread Guillaume Lessard via swift-evolution
A question that comes up often and has also led to a few syntax suggestions revolves around Optionals of Collections or Sequences. Since they can easily arise through optional chaining, making optional sequences easier to use would be useful. Much could be accomplished post-SE-0143 by adding a

[swift-evolution] Sequence/Collection Enhancements

2017-02-16 Thread Ben Cohen via swift-evolution
Hi swift-evolution, Following up on Ted’s post regarding the opening up of stage 2, I’m starting a thread to discuss additive algorithms for Sequence and Collection. Here is a list of commonly requested algorithms to operate on Sequence or Collection: In-place transformations: transform