A sequence built around an iterator of type Base.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
@frozen struct IteratorSequence<Base> where Base : IteratorProtocol
Overview
Useful mostly to recover the ability to use for…in, given just an iterator i:
for x in IteratorSequence(i) { ... }