applyPairs

applyPairs(x,f) -- applies f to each pair (k,v) in the hash table x to produce a new hash table.

It produces a new hash table y from a hash table x by applying the function f to the pair (k,v) for each key k, where v is the value stored in x as x#k. Thus f should be a function of two variables which returns either a pair (kk,vv) which is placed into y, or it returns null , which signifies that no action be performed.

See also apply and scanPairs.

Go to main index.

Go to concepts index.