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

# Collection Implementations

## Topics

### Structures

- [String.Iterator](swift/string/iterator.md)

### Instance Properties

- [count](swift/string/count.md)
- [first](swift/string/first.md)
- [indices](swift/string/indices-swift.property.md)
- [isEmpty](swift/string/isempty.md)
- [underestimatedCount](swift/string/underestimatedcount.md)

### Instance Methods

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

### Subscripts

- [subscript(_:)](swift/string/subscript(_:)-392on.md)
- [subscript(_:)](swift/string/subscript(_:)-4al9c.md)
- [subscript(_:)](swift/string/subscript(_:)-4h7s3.md)

### Type Aliases

- [String.Indices](swift/string/indices.md)
- [String.SubSequence](swift/string/subsequence.md)
