Accesses the key-value pair at the specified position.
- Xcode 8.3+
- Swift Standard Library
The position of the key-value pair to access.
positionmust be a valid index of the dictionary and not equal to
A two-element tuple with the key and value corresponding to
This subscript takes an index into the dictionary, instead of a key, and returns the corresponding key-value pair as a tuple. When performing collection-based operations that return an index into a dictionary, use this subscript with the resulting value.
For example, to find the key for a particular value in a dictionary, use the