[top][index]
search for:

pairs -- list the pairs in a hash table

pairs x -- makes a list of all key/value pairs (k,v) in a hash table x.

i1 : x = new HashTable from {a => 1, b => 2, c => 3}

o1 = HashTable{a => 1}
               b => 2
               c => 3

o1 : HashTable
i2 : pairs x

o2 = {(c, 3), (a, 1), (b, 2)}

o2 : List

Ways to use pairs :

  • pairs HashTable

  • [top][index]
    search for: