When you fail, try, then try again:
?- repeat,format("again!~n"),maybe,format("success~n"). again! again! success true ; again! success true ; again! again! again! again! again! again! again! again! again! success true ; again! success true ...
Did you know ... | Search Documentation: |
Predicate maybe/0 |
When you fail, try, then try again:
?- repeat,format("again!~n"),maybe,format("success~n"). again! again! success true ; again! success true ; again! again! again! again! again! again! again! again! again! success true ; again! success true ...