recorded(+Key, *Term, *Ref)
searches the internal database for a term recorded under the key Key that unifies with Term, and whose database reference unifies with Ref.
If Ref is instantiated, then Key and Term
are unified with the key and term associated with Ref.
Otherwise, If Key is a compound term, only its principal functor is
significant. That is,
foo(1) represents the same
A call to
recorded/3 of the form (
+) will succeed if the
expected relation holds. Key need not be instantiated.
Can be used to backtrack through all the
matching terms recorded under the specified key. Therefore, if you
want to match only a single term you should use a cut to prevent
backtracking. Alternatively, use the