-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add checking mode examples for append #2773
base: master
Are you sure you want to change the base?
Conversation
My personal opinion: Illustrating list predicates is a good opportunity to show how conveniently strings can be written in Scryer Prolog. For example: ?- append("Scr", "yer", "Scryer"). true. |
This sounds good to me. Should I update the proposed PR to use your string example in both modes for |
Personally, I would favour such a change, yes. @aarroyoc I would also greatly appreciate your opinion on this. Thank you a lot! |
Regarding the wording of the documentation for https://www.complang.tuwien.ac.at/ulrich/iso-prolog/prologue#append Note how generally phrased the sufficient condition is: "... true if It doesn't say "concatenate the lists" (which would suggest only a single usage mode), but "true if ...". |
I agree with @triska that |
Co-authored-by: Markus Triska <[email protected]>
Looks excellent to me, thank you a lot! Please consider also the description of the predicate if you are interested! Ideally the description also conveys the generality. |
This pull request adds a checking mode/direction example for
append
.