We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24cdd85 + fd849ac commit c45e300Copy full SHA for c45e300
chapter-10/practical-session.pl
@@ -464,8 +464,8 @@
464
%% List = [X,t(Y)].
465
466
%% Bit tricky:
467
-%% if \+ H = Term succeeds we know that the H and Term can be unified so we fail
468
-%% and go to the default to second myUnifiable and add H to List2.
+%% if \+ H = Term succeeds we know that the H and Term cannot be unified so we
+%% fail and go to the default to second myUnifiable and add H to List2.
469
%% if it fails we use a cut (i.e. it can be unified) we make a cut so that we
470
%% don't end up trying the second myUnifiable which would add it regardless to
471
%% List2 even though it can't be unified.
0 commit comments