---
title: Order Dependent Operations on Dictionary
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/order-dependent-operations-on-dictionary
---

# Order Dependent Operations on Dictionary

Perform order-dependent operations common to all collections, as implemented for Dictionary.

## Topics

### Comparing Dictionaries

- [elementsEqual(_:by:)](swift/dictionary/elementsequal(_:by:).md)
- [starts(with:by:)](swift/dictionary/starts(with:by:).md)
- [lexicographicallyPrecedes(_:by:)](swift/dictionary/lexicographicallyprecedes(_:by:).md)

### Manipulating Indices

- [startIndex](swift/dictionary/startindex.md)
- [endIndex](swift/dictionary/endindex.md)
- [index(after:)](swift/dictionary/index(after:).md)
- [formIndex(after:)](swift/dictionary/formindex(after:).md)
- [index(_:offsetBy:)](swift/dictionary/index(_:offsetby:).md)
- [formIndex(_:offsetBy:)](swift/dictionary/formindex(_:offsetby:).md)
- [index(_:offsetBy:limitedBy:)](swift/dictionary/index(_:offsetby:limitedby:).md)
- [formIndex(_:offsetBy:limitedBy:)](swift/dictionary/formindex(_:offsetby:limitedby:).md)
- [distance(from:to:)](swift/dictionary/distance(from:to:).md)
- [indices](swift/dictionary/indices-swift.property.md)

### Selecting Elements

- [subscript(_:)](swift/dictionary/subscript(_:)-2ny9y.md)
- [subscript(_:)](swift/dictionary/subscript(_:)-4h7sk.md)
- [subscript(_:)](swift/dictionary/subscript(_:)-4al9z.md)
- [prefix(_:)](swift/dictionary/prefix(_:).md)
- [prefix(through:)](swift/dictionary/prefix(through:).md)
- [prefix(upTo:)](swift/dictionary/prefix(upto:).md)
- [prefix(while:)](swift/dictionary/prefix(while:).md)
- [suffix(_:)](swift/dictionary/suffix(_:).md)
- [suffix(from:)](swift/dictionary/suffix(from:).md)

### Excluding Elements

- [dropFirst(_:)](swift/dictionary/dropfirst(_:).md)
- [drop(while:)](swift/dictionary/drop(while:).md)
- [dropLast(_:)](swift/dictionary/droplast(_:).md)
- [popFirst()](swift/dictionary/popfirst().md)

### Transforming a Dictionary’s Elements

- [split(maxSplits:omittingEmptySubsequences:whereSeparator:)](swift/dictionary/split(maxsplits:omittingemptysubsequences:whereseparator:).md)
- [reversed()](swift/dictionary/reversed().md)
- [withContiguousStorageIfAvailable(_:)](swift/dictionary/withcontiguousstorageifavailable(_:).md)
