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

# Collection Implementations

## Topics

### Structures

- [Set.Index](swift/set/index.md)

### Instance Properties

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

### Instance Methods

- [distance(from:to:)](swift/set/distance(from:to:).md)
- [drop(while:)](swift/set/drop(while:).md)
- [dropFirst(_:)](swift/set/dropfirst(_:).md)
- [dropLast(_:)](swift/set/droplast(_:).md)
- [firstIndex(where:)](swift/set/firstindex(where:).md)
- [formIndex(_:offsetBy:)](swift/set/formindex(_:offsetby:).md)
- [formIndex(_:offsetBy:limitedBy:)](swift/set/formindex(_:offsetby:limitedby:).md)
- [formIndex(after:)](swift/set/formindex(after:).md)
- [index(_:offsetBy:)](swift/set/index(_:offsetby:).md)
- [index(_:offsetBy:limitedBy:)](swift/set/index(_:offsetby:limitedby:).md)
- [index(after:)](swift/set/index(after:).md)
- [index(of:)](swift/set/index(of:).md)
- [indices(of:)](swift/set/indices(of:).md)
- [indices(where:)](swift/set/indices(where:).md)
- [map(_:)](swift/set/map(_:)-5p6oa.md)
- [prefix(_:)](swift/set/prefix(_:).md)
- [prefix(through:)](swift/set/prefix(through:).md)
- [prefix(upTo:)](swift/set/prefix(upto:).md)
- [prefix(while:)](swift/set/prefix(while:).md)
- [randomElement()](swift/set/randomelement().md)
- [randomElement(using:)](swift/set/randomelement(using:).md)
- [removingSubranges(_:)](swift/set/removingsubranges(_:).md)
- [split(maxSplits:omittingEmptySubsequences:whereSeparator:)](swift/set/split(maxsplits:omittingemptysubsequences:whereseparator:).md)
- [split(separator:maxSplits:omittingEmptySubsequences:)](swift/set/split(separator:maxsplits:omittingemptysubsequences:).md)
- [suffix(_:)](swift/set/suffix(_:).md)
- [suffix(from:)](swift/set/suffix(from:).md)

### Subscripts

- [subscript(_:)](swift/set/subscript(_:).md)

### Type Aliases

- [Set.Indices](swift/set/indices.md)
- [Set.SubSequence](swift/set/subsequence.md)
