Can someone help me with this?
I have a predicate that returns to me the number of times
the Subterm occurs, but I need it to return to me a list of
the positions it occurs at.
*******************WHAT I HAVE*******************
position(_,[],0).
position(X,[X|L],N) :- position(X,L,M), N is...
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.