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

# Collection Implementations

## Topics

### Instance Properties

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

### Instance Methods

- [distance(from:to:)](swift/slice/distance(from:to:).md)
- [drop(while:)](swift/slice/drop(while:).md)
- [dropFirst(_:)](swift/slice/dropfirst(_:).md)
- [dropLast(_:)](swift/slice/droplast(_:).md)
- [firstIndex(of:)](swift/slice/firstindex(of:).md)
- [firstIndex(where:)](swift/slice/firstindex(where:).md)
- [formIndex(_:offsetBy:)](swift/slice/formindex(_:offsetby:).md)
- [formIndex(_:offsetBy:limitedBy:)](swift/slice/formindex(_:offsetby:limitedby:).md)
- [formIndex(after:)](swift/slice/formindex(after:).md)
- [index(_:offsetBy:)](swift/slice/index(_:offsetby:).md)
- [index(_:offsetBy:limitedBy:)](swift/slice/index(_:offsetby:limitedby:).md)
- [index(after:)](swift/slice/index(after:).md)
- [index(of:)](swift/slice/index(of:).md)
- [indices(of:)](swift/slice/indices(of:).md)
- [indices(where:)](swift/slice/indices(where:).md)
- [makeIterator()](swift/slice/makeiterator().md)
- [map(_:)](swift/slice/map(_:)-3jfli.md)
- [popFirst()](swift/slice/popfirst().md)
- [prefix(_:)](swift/slice/prefix(_:).md)
- [prefix(through:)](swift/slice/prefix(through:).md)
- [prefix(upTo:)](swift/slice/prefix(upto:).md)
- [prefix(while:)](swift/slice/prefix(while:).md)
- [randomElement()](swift/slice/randomelement().md)
- [randomElement(using:)](swift/slice/randomelement(using:).md)
- [removeFirst()](swift/slice/removefirst()-2564w.md)
- [removeFirst(_:)](swift/slice/removefirst(_:)-3pkd7.md)
- [removingSubranges(_:)](swift/slice/removingsubranges(_:).md)
- [split(maxSplits:omittingEmptySubsequences:whereSeparator:)](swift/slice/split(maxsplits:omittingemptysubsequences:whereseparator:).md)
- [split(separator:maxSplits:omittingEmptySubsequences:)](swift/slice/split(separator:maxsplits:omittingemptysubsequences:)-5z4op.md)
- [suffix(_:)](swift/slice/suffix(_:).md)
- [suffix(from:)](swift/slice/suffix(from:).md)

### Subscripts

- [subscript(_:)](swift/slice/subscript(_:)-1rloy.md)
- [subscript(_:)](swift/slice/subscript(_:)-3p40a.md)
- [subscript(_:)](swift/slice/subscript(_:)-520wp.md)
- [subscript(_:)](swift/slice/subscript(_:)-5pgrv.md)
- [subscript(_:)](swift/slice/subscript(_:)-5rdkr.md)
- [subscript(_:)](swift/slice/subscript(_:)-7bg96.md)

### Type Aliases

- [Slice.Index](swift/slice/index.md)
- [Slice.Indices](swift/slice/indices-swift.typealias.md)
- [Slice.Iterator](swift/slice/iterator.md)
- [Slice.SubSequence](swift/slice/subsequence.md)
