---
title: Dictionary.Index
framework: swift
role: symbol
role_heading: Structure
path: swift/dictionary/index
---

# Dictionary.Index

The position of a key-value pair in a dictionary.

## Declaration

```swift
@frozen struct Index
```

## Overview

Overview Dictionary has two subscripting interfaces: Subscripting with a key, yielding an optional value: v = d[k]! Subscripting with an index, yielding a key-value pair: (k, v) = d[i]

## Topics

### Default Implementations

- [Comparable Implementations](swift/dictionary/index/comparable-implementations.md)
- [Equatable Implementations](swift/dictionary/index/equatable-implementations.md)
- [Hashable Implementations](swift/dictionary/index/hashable-implementations.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [Dictionary.Keys](swift/dictionary/keys-swift.struct.md)
- [Dictionary.Values](swift/dictionary/values-swift.struct.md)
- [Dictionary.Indices](swift/dictionary/indices.md)
- [Dictionary.Iterator](swift/dictionary/iterator.md)
