applyKeys(x,f) -- applies f to each key k in the hash table x to produce a new hash table.
Thus f should be a function of one variable k which returns a new key k' for the value v in y.
It is an error for the function f to return the same key twice.
i1 : x = new HashTable from {1 => a, 2 => b, 3 => c} |
i2 : applyKeys(x, k -> k + 100) |
See also:
Ways to use applyKeys :