pairs x
If x is a hash table or dictionary, the pairs consist of each key along with its associated value.
|
|
A dictionary is a special hash table whose keys are strings, and whose values are the corresponding symbols.
|
|
|
|
|
|
If x is a basic list, the pairs consist of each index along with the element at that index in the list.
|
|
|
As the first example illustrates, pairs are not necessarily listed in any particular order.
The object pairs is a compiled function.