Hello to everyone,
I am studying from a prolog tutorial, but I have stuck in a programm, and can't figure it out at all. It's the perm predicate, I think it's in the prolog or sth, it's definition is this(with the definition of takeout too that it uses):
takeout(X,[X|R],R)...
Hi, I don't understand how this programm works.
reverse_list([], []).
reverse_list([Head | Tail], ReversedList) :-
reverse_list(Tail, ReversedTail),
append(ReversedTail, [Head], ReversedList).
It is assumed to reverse a list, but I don't know what calls does it make and with what order. Can...
Hi, I want to apologize to all and especially Mr. Kahleen for my continuous asking for help, but I have boggled.
Here's what I have to do next, I have a list A and a list B with the couples of the elements of list A, for example: list A=[4,5,6,7,8,9] and list B=[[4,5],[6,7],[8,9]].
I have made a...
Hi, sorry for the many posts, but I have lots of programms to solve... Now I have to solve a programm with two lists, that have at least one mutual element. I tried this without using append, but it's wrong. Can anyone help me? Thanks in advance. Here's my programm...
Hi again. :(
I have other three programms, the first one is this: I have to make a programm, that the first list A, is embraced in the second list B. I tested two programms, but they were wrong. An example of the embraced list is, A=[5,6,7] and B=[0,3,5,6,7,9]. Thank you in advance.
? 'm writing this again, because noone noticed, probably because I had one reply by myself, because I had made a mistake. So, if you haven't seen, it, please answer me my questions. Thanks.
"Hello everyone,I have to write two programms with lists, with two arguments. In the first programm the...
Hello everyone,
I have to write two programms with lists, with two arguments. In the first programm the first argument(list)must lead the second(list) and in the second programm the opposite. I don't understand the theory very well, when I have news I'll inform you, unless you understand it...
Hi, I have written a small programm which shows a cd' s artist, released album, year, etc which is in this way:
cd(album(band(‘Coldplay’), name(‘Viva la Vida or Death and All His Friends’)), release(year(2008), uschart(1)), genre(‘Alternative rock’), price(new(25), used(18))).
This...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.