pairs x
(k, x#k)
; 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.
|
|
|
If x
belongs to any other class, then iterator is called on it, and if successful, an Iterator object is returned.
|
|
|
|
|
|
As the first example illustrates, pairs are not necessarily listed in any particular order.
The object pairs is a compiled function.
The source of this document is in Macaulay2Doc/ov_hashtables.m2:482:0.