AnyCollection
A type-erased wrapper over any collection with indices that support forward traversal.
Declaration
@frozen struct AnyCollection<Element>Overview
An AnyCollection instance forwards its operations to a base collection having the same Element type, hiding the specifics of the underlying collection.
Topics
Initializers
Instance Methods
drop(while:)dropFirst(_:)dropLast(_:)filter(_:)forEach(_:)formIndex(_:offsetBy:)formIndex(_:offsetBy:limitedBy:)map(_:)prefix(_:)prefix(while:)suffix(_:)