Replies: 1 comment 2 replies
-
Is there a video about |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
today I saw a discussion about an unexpected answer of
partition/4
that prompted me to try the given example withtpartition/4
fromlibrary(reif)
:It is immediately clear that this is an immense improvement over
partition/4
, already from the two additional answers we see. From them, the partitioning is also easier to understand, and in particular thatAs = [[3],[5]]
can impossibly arise in any solution, because theX
in[X]
cannot be both 3 and 5.The predicates from
library(reif)
are really worth a look, they address long-standing incompleteness issues of many earlier library predicates such asinclude/3
,exclude/3
andpartition/4
which are noteworthy for their incorrectness when used with non-ground conditions.All the best,
Markus
Beta Was this translation helpful? Give feedback.
All reactions