StructureSwift

    AnyRandomAccessCollection

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

    @frozen struct AnyRandomAccessCollection<Element>

    Overview

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

    Members

    Typealiases

    • typealias Index

      A type that represents a position in the collection.

    • typealias Indices

      A type that represents the indices that are valid for subscripting the collection, in ascending order.

    • typealias Iterator

      A type that provides the collection’s iteration interface and encapsulates its iteration state.

    • typealias SubSequence

      A collection representing a contiguous subrange of this collection’s elements. The subsequence shares indices with the original collection.

    Initializers

    Instance Subscripts

    Instance Properties

    Instance Methods

    Removed Members

    Instance Methods