scanPairs(x,f) -- applies the function f to each pair (k,v) where k is a key in the hash table x and v is the corresponding value x#k.
This function requires an immutable hash table. To scan the pairs in a mutable hash table, use scan(pairs x, f).
See also
scan -- apply a function to each element in a list or sequence