scanPairs(t, f)
scanPairs(t, f) applies the function f to each pair (k, t#k) in the hash table t. In other words, f is applied to each key k paired with its corresponding value t#k.
|
|
|
This function requires an immutable hash table. To scan the pairs in a mutable hash table, use scan(pairs t, f).
The object scanPairs is a compiled function.