-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
featureA feature request or implementationA feature request or implementationgood first issueGood for newcomersGood for newcomersstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift evolution proposal neededFlag → feature: A feature that warrants a Swift evolution proposalFlag → feature: A feature that warrants a Swift evolution proposal
Description
Previous ID | SR-6864 |
Radar | None |
Original Reporter | @airspeedswift |
Type | New Feature |
Additional Detail from JIRA
Votes | 0 |
Component/s | Standard Library |
Labels | New Feature, StarterProposal |
Assignee | None |
Priority | Medium |
md5: ce3f8a07c6a7edad8e1997fb1e825980
Issue Description:
It is often useful to cycle over a sequence indefinitely. For example, just like you can write zip(repeatElement("foo", count: Int.max), myArray)
and zip(1..., myArray)
, you could write {{zip([.grey,.white].cycle(), myArray)}}.
Metadata
Metadata
Assignees
Labels
featureA feature request or implementationA feature request or implementationgood first issueGood for newcomersGood for newcomersstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift evolution proposal neededFlag → feature: A feature that warrants a Swift evolution proposalFlag → feature: A feature that warrants a Swift evolution proposal