Structureswift 6.0.3Swift
Iterator
An iterator that presents the elements of the sequences traversed by a base iterator, concatenated using a given separator.
@frozen struct Iterator
An iterator that presents the elements of the sequences traversed by a base iterator, concatenated using a given separator.
@frozen struct Iterator
import Swift
@frozen struct JoinedSequence<Base> where Base : Sequence, Base.Element : Sequence
A sequence that presents the elements of a base sequence of sequences concatenated using a given separator.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
func makeIterator() -> JoinedSequence<Base>.Iterator
Return an iterator over the elements of this sequence.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
init<Separator>(base: Base.Iterator, separator: Separator) where Separator : Sequence, Separator.Element == Base.Element.Element
Creates an iterator that presents the elements of base
sequences concatenated using separator
.
mutating func next() -> JoinedSequence<Base>.Iterator.Element?
Advances to the next element and returns it, or nil
if no next element exists.
typealias Element = Base.Element.Element
protocol Sendable