![]() |
YAP 7.1.0
|
Maintain a light-weight map where the key is an atom, and the value can be any constant. More...
Maintain a light-weight map where the key is an atom, and the value can be any constant.
class set_value/2 |
set_value(+ A,+ C)
Associate atom A with constant C
The set_value
and get_value
built-ins give a fast alternative to the internal data-base This is a simple form of implementing a global counter
This predicate is YAP specific
class get_value/2 |
get_value(+ A,- V)
In YAP, atoms can be associated with constants If one such association exists for atom A, unify the second argument with the constant Otherwise, unify V with []
This predicate is YAP specific