Skip to content

Residual goals for CHR #2220

Answered by triska
bakaq asked this question in Q&A
Dec 11, 2023 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

In short, what you see here is not the Prolog code that is actually running when you try the example, because these sample definitions are only Prolog facts.

You can define goal expansions to expand these facts to any Prolog clauses you want. These clauses can introduce variables and attach attributes as you need them. The residual goals can omit any variable that is not needed.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@bakaq
Comment options

Comment options

You must be logged in to vote
7 replies
@bakaq
Comment options

@triska
Comment options

Answer selected by bakaq
@bakaq
Comment options

@triska
Comment options

@bakaq
Comment options

@triska
Comment options

Comment options

You must be logged in to vote
1 reply
@bakaq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants