In the Dictionary header documentation in Swift:
Hash-based mapping from Key instances to Value . Also collecting key-value pairs in no particular order.
Pay attention in particular to no defined ordering .
With this in mind, I had problems fully understanding these calculated variables (and the associated methods that take these types):
The "index" here is DictionaryIndex .
However, the DictionaryIndex documentation here looks circular:
Used to access key-value pairs in an instance of Dictionary<Key, Value> .
What is the purpose of DictionaryIndex ?
source share