!, fail combination
Another common use of the cut is with fail
Use to force failure in special cases that are easy to rule out immediately
average_taxpayer(X) :-lives_in_bermuda(X), !, fail.
average_taxpayer(X) :-/* complicated rules here… */
Previous slide
Next slide
Back to first slide
View graphic version