---
title: Collection Implementations
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/anycollection/collection-implementations
---

# Collection Implementations

## Topics

### Instance Properties

- [count](swift/anycollection/count.md)
- [endIndex](swift/anycollection/endindex.md)
- [first](swift/anycollection/first.md)
- [indices](swift/anycollection/indices-swift.property.md)
- [isEmpty](swift/anycollection/isempty.md)
- [startIndex](swift/anycollection/startindex.md)

### Instance Methods

- [distance(from:to:)](swift/anycollection/distance(from:to:).md)
- [firstIndex(of:)](swift/anycollection/firstindex(of:).md)
- [firstIndex(where:)](swift/anycollection/firstindex(where:).md)
- [formIndex(after:)](swift/anycollection/formindex(after:).md)
- [index(_:offsetBy:)](swift/anycollection/index(_:offsetby:).md)
- [index(_:offsetBy:limitedBy:)](swift/anycollection/index(_:offsetby:limitedby:).md)
- [index(after:)](swift/anycollection/index(after:).md)
- [index(of:)](swift/anycollection/index(of:).md)
- [indices(of:)](swift/anycollection/indices(of:).md)
- [indices(where:)](swift/anycollection/indices(where:).md)
- [makeIterator()](swift/anycollection/makeiterator().md)
- [map(_:)](swift/anycollection/map(_:)-2u3hq.md)
- [popFirst()](swift/anycollection/popfirst().md)
- [prefix(through:)](swift/anycollection/prefix(through:).md)
- [prefix(upTo:)](swift/anycollection/prefix(upto:).md)
- [randomElement()](swift/anycollection/randomelement().md)
- [randomElement(using:)](swift/anycollection/randomelement(using:).md)
- [removeFirst()](swift/anycollection/removefirst().md)
- [removeFirst(_:)](swift/anycollection/removefirst(_:).md)
- [removingSubranges(_:)](swift/anycollection/removingsubranges(_:).md)
- [split(maxSplits:omittingEmptySubsequences:whereSeparator:)](swift/anycollection/split(maxsplits:omittingemptysubsequences:whereseparator:).md)
- [split(separator:maxSplits:omittingEmptySubsequences:)](swift/anycollection/split(separator:maxsplits:omittingemptysubsequences:)-52osm.md)
- [suffix(from:)](swift/anycollection/suffix(from:).md)

### Subscripts

- [subscript(_:)](swift/anycollection/subscript(_:)-47haf.md)
- [subscript(_:)](swift/anycollection/subscript(_:)-87z1l.md)
- [subscript(_:)](swift/anycollection/subscript(_:)-9guhy.md)
- [subscript(_:)](swift/anycollection/subscript(_:)-t0ed.md)
- [subscript(_:)](swift/anycollection/subscript(_:)-vb3o.md)

### Type Aliases

- [AnyCollection.Index](swift/anycollection/index.md)
- [AnyCollection.Indices](swift/anycollection/indices.md)
- [AnyCollection.Iterator](swift/anycollection/iterator.md)
- [AnyCollection.SubSequence](swift/anycollection/subsequence.md)
