RetrieveResult
The outcome of a ClauseCollection.retrieve/ClauseCollection.retrieveAll (or ClauseQueue.retrieveFirst) operation: either Success, carrying the resulting collection and the clauses that were actually removed from it, or Failure, carrying the collection unchanged because no clause matched. This is the ClauseCollection-level counterpart of it.unibo.tuprolog.theory.RetractResult, which wraps it to implement it.unibo.tuprolog.theory.Theory.retract.
Inheritors
Types
Link copied to clipboard
A failed retrieval result, carrying the unchanged collection.
Link copied to clipboard
data class Success<C : ClauseCollection>(val collection: C, val clauses: List<Clause>) : RetrieveResult<C>
A successful retrieval result, carrying the resulting collection and removed clauses.