[ Recorded Database | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
Records the term Value at the end of key Key in the indexed database.
- An atom or compound term.
- Any prolog term.
Used to record any prolog term Value at the end of the indexed database
entry associated with the key Key. A synonym for recordz/2. In the
case of compound terms, all keys of the same name and arity are treated
If backtracking occurs through the call of record/2 the associated Value
is not removed from the indexed database. Recording the same Value
twice results in two identical entries in the indexed database. All
variables are recorded according to their internal representations.
Modes and Determinism
This predicate is sensitive to its module context (tool predicate, see @/2).
- (4) instantiation fault
- Key is not instantiated.
- (5) type error
- Key is neither an atom nor a compound term.
Value = jameson More (;)
Value = glenlivet More (;)
Value = bushmills More (;)
no (more) solution.
record(Key, anything). (Error 4)
record("key",anything). (Error 5)
recorda / 2, recordz / 2