Replies: 1 comment 2 replies
-
It may be a complete answer like
It terminates an answer. Optionally, indeed. It terminates an answer, like an exception terminates an answer. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@UWN, it seems that "leaf answer" is very related to the concept you want in the specification of
countall/2
from the Prolog prologue. However, the sense I've been using "leaf answer" is different from the one ofcountall/2
(which is lifted fromfindall/3
), because it includes tailfalse
s, and it's therefore implementation specific.From my understanding,
countall/2
counts the "successful leaf answers". Ifcountall/2
givesN
as a result, there is eitherN
orN + 1
"leaf answers", depending on if there is a tail false or not1. I'm not sure which of these concepts should be blessed with the nicer term, but here are some options:Footnotes
And also ignoring exceptions and things like that. ↩
Beta Was this translation helpful? Give feedback.
All reactions