make_pad(Zs, N):- N > 0,
N1 is N-1,
make_pad([0|Zs], N1).
missing clause (N>0), it works now.
Silly Me.
Nevertheless I am getting an awful lot of insufficiently instantiated arguments I would just LOVE to know at which point in the code its occuring.
Any...
Hi,
I am trying to refine an algorithm that otherwise depends on too many calls to list reverse predicate.
I am trying to define a predicate that takes a list and an integer as arguments, and prepends integer number of items at the front of the list. In this case the items are zeros and the...
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.