How to make a list of lists in prolog?

The problem is that you are not using H in your predicate to put the list you want.

The problem is that you are not using H in your predicate to put the list you want This should do it divideList(, ):-!. DivideList(Head|Tail, H|HTail):- list_to_set(Head,H),%H is a List divideList(Tail, HTail). The second argument will have your list of lists.

No need at all for the cut. – larsmans May 13 at 8:30 @larsman: Right, but I just added what was missing in OP code, so I left it as the way it was. – gusbro May 13 at 13:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions