[swift-evolution] [Pitch] New collection-based 'repeat' API
xiaodi.wu at gmail.com
Tue May 2 12:45:56 CDT 2017
Very useful links. Clearly, `cycle` is a related topic. It's at once more
general, in that it would operate on sequences and produce an infinite
sequence, and much more tricky to implement, as evidenced by the extensive
discussion on support for cycling infinite sequences. Both of those factors
could arguably change the balance in terms of thresholds for inclusion in
the standard library.
On Tue, May 2, 2017 at 11:40 Ole Begemann via swift-evolution <
swift-evolution at swift.org> wrote:
> On 02.05.2017 18:33, Ole Begemann via swift-evolution wrote:
> For reference, here are some links to previous discussions on related
> 1) Kevin Ballard in December 2015: Proposal: CollectionType.cycle
> property for an infinite sequence
> 2) Ben Cohen in February 2016: Sequence/Collection Enhancements
> (one of the enhancements that Ben proposed to consider for adding to the
> standard library is a cycle method for Collection and/or Sequence. I
> don't think there is a more specific proposal for this yet, but at least we
> know it's on the core team's radar.
> This should be *February 2017*, of course. Sorry.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution