Structureswift-algorithms 1.2.1Algorithms
Iterator
The iterator for an InterspersedSequence
sequence.
struct Iterator
The iterator for an InterspersedSequence
sequence.
struct Iterator
where Base:Sequence
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct InterspersedSequence<Base> where Base : Sequence
A sequence that presents the elements of a base sequence of elements with a separator between each of those elements.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
func makeIterator() -> InterspersedSequence<Base>.Iterator
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> Base.Element?