-
In SWIPL I can prefix an ?- member(_A,[[1],[2]]),member(B,_A). B = 1 ; B = 2. How do I ask scryer prolog to "ignore" variables in a similar way? |
Beta Was this translation helpful? Give feedback.
Answered by
UWN
Dec 1, 2023
Replies: 1 comment
-
Instead of explicitly ignoring some variables, you may just indicate the variables you are interested in:
Note that suppressing the answers for named variables starting with an underscore collides with new variables in answers.
This becomes a problem, if you want to paste back such answers into a further query. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
razetime
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of explicitly ignoring some variables, you may just indicate the variables you are interested in:
Note that suppressing the answers for named variables starting with an underscore collides with new variables in answers.
This becomes a problem, if you want to paste back such answers into a further query.