Macaulay2 » Documentation
Packages » SLPexpressions :: valueHashTable
next | previous | forward | backward | up | index | toc

valueHashTable -- creates a hash table of values for evaluation

Synopsis

Description

This methods creates an object of type ValueHashTable from a List of InputGates and a List of corresponding values. The evaluations of the input gates at the values can be performed using the method value.

i1 : declareVariable X

o1 = X

o1 : InputGate
i2 : declareVariable Y

o2 = Y

o2 : InputGate
i3 : h = valueHashTable({X,Y},{1,ii})

o3 = ValueHashTable{...2...}

o3 : ValueHashTable
i4 : peek h

o4 = ValueHashTable{X => 1 }
                    Y => ii

See also

Ways to use valueHashTable :

For the programmer

The object valueHashTable is a method function.