Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I have some .pl file and I want to call predicate declared in it from py开发者_如何学Gothon script. How can I do that?
I have this graph structure representing data flow in Prolog. I have an edge from node 1 to 2, 1 to 3, etc.
I\'m trying to divide a list in Prolog into 3 equal parts (...well, as equal as possible). My algorithm is the following:
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
I\'m new to Prolog and st开发者_StackOverflow中文版uck on some programming homework. one of them should work like this:
Can an application be developed using both XPCE and Logtalk, or are the class sy开发者_运维技巧stems incompatible in some way?Please, Logtalk, not LogTalk. Leave the Camel case to Java programmers :-)
I know how to remo开发者_C百科ve an element from a list but is there a way to remove more than one elements from a list? For example,
I want to count the number of times a custom predicate is true. For example, I have the following code:
How can merge two list like this? [a,b,c] [1,2,3] and I want to make this list [a=1,b=2,c=3]. How can I do this? (I use swi prolog)