StructureSwift5.9.0
Iterator
An iterator that produces one or zero instances of an element.
@frozen struct Iterator
IteratorOverOne
is the iterator for the CollectionOfOne
type.
Citizens in Swift
Conformances
protocol IteratorProtocol
A type that supplies the values of a sequence one at a time.
Members
func next(
) -> Element? Advances to the next element and returns it, or
nil
if no next element exists.
Citizens in Swift
where Element:Sendable
Conformances
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.