i1 : x = new HashTable from {a=>1, b=>2} |
i2 : applyValues(x, value -> 1000*value) |
i3 : applyKeys(x, key -> {key}) |
i4 : applyPairs(x, (key,value) -> (value,key)) |
i5 : x = new HashTable from {a=>1, b=>2} |
i6 : scanValues(x, print) |
i7 : scanKeys(x, print) |
i8 : scanPairs(x, print) |
i9 : y = new HashTable from {b=>200, c=>300} |
i10 : merge(x, y, plus) |
i11 : combine(x,y,identity,times,plus) |