For an assignment I have to generate a prolog procedure body dynamically. How can I do this?
For an assignment I have to generate a prolog procedure body dynamically. How can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See here for the swi prolog manual description of relevant predicates.
As an example consider the following
PS: Another possibility is lower class, but sometimes can be a better choice: just print out what you need to construct to a file.