Hello,
I am blanking of the following:
I have a list of facts, say, based on fact/1.
Edit: the facts are predefined in a file, and are in fact the outcome of term_expansion β i assume that there are all static terms, generated during consult.
I have a failure driven loop to read in each fact and process it:
process_facts :-
fact(X),
process(fact(X)),
fail.
process_facts.
I want to do this without a failure driven loop, so i can distinguish between facts processing that failed, and processing a next fact.
I donβt want to use calls such as findall, since the list of facts could be large and i want to guarantee that i am processing the facts in the sequence they occurs in the source file.
Any thoughts are much appreciated,
Dan