Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
/ Cycle Public archive

A sequence that cycles between each of the items in a given sequence.

License

Notifications You must be signed in to change notification settings

NSHipster/Cycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cycle

A sequence that cycles between each of the items in a given sequence.

for (number, parity) in zip(0..<5, ["even", "odd"].cycled()) {
    print(number, parity)
}
// Prints:
// 0 even
// 1 odd
// 2 even
// 3 odd
// 4 even

License

MIT

Contact

Mattt (@mattt)

About

A sequence that cycles between each of the items in a given sequence.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages