Iterator
An iterator that presents the elements of the sequences traversed by a base iterator, concatenated using a given separator.
@frozen struct Iterator
Citizens in Swift
Members
init<Separator>(base: Base.Iterator, separator: Separator
) Creates an iterator that presents the elements of
base
sequences concatenated usingseparator
.
Citizens in Swift
where Base:Sequence, Base.Element:Sequence
Conformances
protocol IteratorProtocol
A type that supplies the values of a sequence one at a time.
Members
func next(
) -> JoinedSequence<Base>.Iterator.Element? Advances to the next element and returns it, or
nil
if no next element exists.typealias Element