|Did you know ...||Search Documentation:|
|Pack logicmoo_utils -- prolog/logicmoo_common.pl|
The following predicates are re-exported from other modules
Wrap must/1 over parts of your code you do not trust
If your code fails.. it will rewind to your entry block (at the scope of this declaration) and invoke rtrace/1 .
If there are 50 steps to your code, it will save you from pushing
creep 50 times.
Instead it turns off the leash to allow you to trace with your eyeballs instead of your fingers.
% must( :Goal) is semidet.
Must Be Successfull.
user_error, but only prints if Topic is activated through debug/1. Args is a meta-argument to deal with goal for the @-command. Output is first handed to the hook prolog:debug_print_hook/3. If this fails, Format+Args is translated to text using the message-translation (see print_message/2) for the term
debug(Format, Args)and then printed to every matching destination (controlled by debug/1) using print_message_lines/3.
The message is preceded by '% ' and terminated with a newline.
Fact :- !,fail.
use locally_hide_each/3 if respecting Non-determism is important (slightly slower?)
The following predicates are exported, but not or incorrectly documented.