[swift-evolution] [Pitch] New collection-based 'repeat' API

Xiaodi Wu 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
> topics:
> 1) Kevin Ballard in December 2015: Proposal: CollectionType.cycle
> property for an infinite sequence
> <https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151228/004635.html>
> 2) Ben Cohen in February 2016: Sequence/Collection Enhancements
> <https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170213/032120.html>
> (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
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170502/4bf8faaf/attachment.html>

More information about the swift-evolution mailing list