Contents

IteratorSequence

A sequence built around an iterator of type Base.

Declaration

@frozen struct IteratorSequence<Base> where Base : IteratorProtocol

Overview

Useful mostly to recover the ability to use forin, given just an iterator i:

for x in IteratorSequence(i) { ... }

Topics

Initializers

Default Implementations

See Also

Indices and Iterators