Instance Methodswift-algorithms 1.2.1Algorithms
next
Cycle.swift:40mutating func next() -> Base.Element?
mutating func next() -> Base.Element?
s10Algorithms14CycledSequenceV8IteratorV4next7ElementQzSgyF
What are these?A5XF
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct Iterator
The iterator for a CycledSequence
instance.
struct CycledSequence<Base> where Base : Collection
A collection wrapper that repeats the elements of a base collection.
associatedtype Element where Self.Element == Self.Iterator.Element
A type representing the sequence’s elements.