Did you know ... Search Documentation:
Pack pl2detlog -- prolog/detlog_rt.pl
PublicShow source
 if_commit(:Cond, :Then, :Else)
The Detlog decision: the first answer of Cond selects Then, no answer selects Else.
 dl_all(+Goal, -Answers, ?Tail)
Answers-Tail lists the instances of Goal, in Prolog's order. The common generators are enumerated directly; any other goal is collected.
 dl_once(+Goal)
The first answer of a builtin goal (once/1 for builtins).
 dl_match(+Facts, +Call, -Answers, ?Tail)
Facts written as data: the facts that unify with Call, in order.
 dl_project(+Answers, +Pattern, +Template, -Values)
findall/3 over an answer list: Template for each answer that unifies with Pattern.
 dl_aggregate(+Spec, +Values, -Result)
aggregate_all/3 over the values of an answer list.
 dl_member(?X, +Answers)
Where Detlog code meets ordinary Prolog (a meta-call, or a predicate kept as Prolog), the answers are given back one by one, as member/2 does.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 dl_fused_first(Arg1, Arg2)
 dl_fused_all(Arg1, Arg2, Arg3, Arg4, Arg5)