Contents

AnyIterator

A type-erased iterator of Element.

Declaration

@frozen struct AnyIterator<Element>

Overview

This iterator forwards its next() method to an arbitrary underlying iterator having the same Element type, hiding the specifics of the underlying IteratorProtocol.

Topics

Initializers

Default Implementations

See Also

Type-Erasing Wrappers