Re:A Short Introduction to Prolog
by JadeNB on Friday August 05, 2011 @10:26AM
(#2850175)
Prolog also has syntax for if-then, so
can essentially be re-written as
(This saves testing `x(A, C)` twice. Also, `->` implicitly cuts, presenting backtracking over `x(A, C)`; but that shouldn't matter here.) However, this set-up mistakenly has `x(A, C)` as the antecedent; I think you actually want it as the consequent.
[ Parent
| on HN ]
There are no comments on this comment yet.