-
I am not sure why i get a couple of variables in list
I try to tell prolog that it is an alphabetical character beforehand:
How do I correct my code? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
There are a couple of problems, none of which is related to
This is unexpected for a couple of reasons. First, there is no answer substitution for But then, the answer substitution itself is odd, it should be exactly the other way around, at least in SWI which itself has a problem SWI-Prolog/issues#130. Also, I do not understand the point of producing here a string. The documentation mentions this, but no, I do not get it. |
Beta Was this translation helpful? Give feedback.
-
corrected in f10d7c0 |
Beta Was this translation helpful? Give feedback.
There are a couple of problems, none of which is related to
maplist/3
or lambda.This is unexpected for a couple of reasons. First, there is no answer substitution for
A
. This is clearly an internal bug somewhere in Scryer.But then, the answer substitution itself is odd, it should be exactly the other way around, at least in SWI which itself has a problem SWI-Prolog/issues#130.
Also, I do not understand the point of producing here a string. The documentation mentions this, but no, I do not get it.