The position of the first element in a nonempty dictionary.
SDK
- Xcode 8.3+
Framework
- Swift Standard Library
Declaration
var startIndex: Dictionary<Key, Value>.Index { get }
Discussion
If the collection is empty, start is equal to end.
Complexity: Amortized O(1) if the dictionary does not wrap a bridged NSDictionary. If the dictionary wraps a bridged NSDictionary, the performance is unspecified.