[ Recorded Database | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
Succeeds if the term Value has been recorded in the indexed database under
the key Key.
- An atom or a compound term.
- Any Prolog term.
Used to find all values associated with a key. Unifies Value with the
first term that has been associated with Key. In the case of compound
terms, all keys of the same name and arity are treated as equal.
Backtracking will unify Value with successive values associated with Key
in the order in which they were recorded.
Modes and Determinism
This predicate is sensitive to its module context (tool predicate, see @/2).
Fails if nothing is recorded under the key Key
- (4) instantiation fault
- Key is not instantiated.
- (5) type error
- Key is neither an atom nor a compound term.
Value = paulaner More? (;)
Value = lowenbrau More? (;)
Value = spaten More? (;)
no (more) solution.
recorded(Beer,Value). (Error 4)
recorded("beer",Value). (Error 5)
recorded(1,Value). (Error 5)
record / 2