next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc > The Macaulay2 language > hash tables > applyValues

applyValues -- apply a function to each value

Synopsis

Description

i1 : H = new HashTable from {a => 1, b => 2, c => 3}

o1 = HashTable{a => 1}
               b => 2
               c => 3

o1 : HashTable
i2 : applyValues(H, v -> v + 100)

o2 = HashTable{a => 101}
               b => 102
               c => 103

o2 : HashTable

See also

Ways to use applyValues :