Instance Propertyswift 6.0.1Swift
startIndex
The position of the first element in a nonempty collection.
var startIndex: KeyValuePairs<Key, Value>.Index { get }
If the KeyValuePairs
instance is empty, startIndex
is equal to endIndex
.
Other members in extension
Typealiases
typealias Element
The element type of a
KeyValuePairs
: a tuple containing an individual key-value pair.typealias Index
typealias Indices
typealias SubSequence
Type members
init(dictionaryLiteral: (Key, Value)...
) Creates a new
KeyValuePairs
instance from the given dictionary literal.
Instance members
var debugDescription: String
A string that represents the contents of the dictionary, suitable for debugging.
var description: String
A string that represents the contents of the dictionary.
var endIndex: KeyValuePairs<Key, Value>.Index
The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument.
subscript(KeyValuePairs<Key, Value>.Index
) -> KeyValuePairs<Key, Value>.Element Accesses the element at the specified position.