A.52 library(tables): XSB interface to tables
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(tables): XSB interface to tables
          • tnot/1
          • tfindall/3
          • set_pil_on/0
          • set_pil_off/0
          • get_call/3
          • get_calls/3
          • get_returns/2
          • get_returns/3
          • get_returns_and_tvs/3
          • get_returns_and_dls/3
          • get_residual/2
          • get_returns_for_call/2
          • abolish_table_pred/1
          • abolish_table_call/1
          • abolish_table_call/2
          • abolish_table_subgoals/2
    • Packages
Availability::- use_module(library(tables)).(can be autoloaded)
Source[nondet]get_residual(:CallTerm, -DelayList)
True if CallTerm appears in a table and has DelayList. SWI-Prolog's representation for a delay is a body term, more specifically a disjunction of conjunctions. The XSB representation is non-deterministic and uses a list to represent the conjunction.

The delay condition is a disjunction of conjunctions and is represented as such in the native SWI-Prolog interface as a nested term of ;/2 and ,/2, using true if the answer is unconditional. This XSB predicate returns the associated conjunctions non-deterministically as a list.

See also call_residual_program/2 from library(wfs).