| |||||||||||
| causes the goal to succeed only once.
!/0
!/0 (Cut) succeeds exactly once. Unexplored branches
of the search-tree get cutted. If Cut is part of a goal then all
choicepoints of that goal are removed. That means that all bindings are
fixed.
Examples
Assume that the database contains:
colour(blue).
colour(red).
colour(yellow).
clothing(blouse).
clothing(trousers).
clothing(socks).
Standard
This predicate is part of the ISO-Prolog Standard.
See alsoabort/0, break/0, call/1, fcall/1, catch/3, ','(conjunction)/2, ';'(disjunction)/2, fail/0, true/0, halt/0/1, '->'(if-then)/2, ';'(if-then-else)/2, '\+'(not provable)/1, once/1, repeat/0, throw/1.
| |||||||||||
| |||||||||||
| Back> |
|