StructureSwift5.9.0

    AnyCollection

    A type-erased wrapper over any collection with indices that support forward traversal.

    @frozen struct AnyCollection<Element>

    An AnyCollection instance forwards its operations to a base collection having the same Element type, hiding the specifics of the underlying collection.

    Citizens in Swift

    Conformances

    • protocol Collection

      A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.

    • protocol Sequence

      A type that provides sequential, iterated access to its elements.

    Members

    Features